Last modified: 2011-01-22 12:09:50 UTC
Hi, I would like to enable the viewing of pages, as well as subcategories, in the CategoryTree of categories in the Hebrew Wikipedia. I was told the config is as follows: $wgCategoryTreeCategoryPageMode = CT_MODE_PAGES; The discussion was held here: http://he.wikipedia.org/wiki/%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%9E%D7%96%D7%A0%D7%95%D7%9F#.D7.94.D7.A6.D7.92.D7.AA_.D7.A2.D7.A8.D7.9B.D7.99.D7.9D_.D7.A9.D7.9C_.D7.A7.D7.98.D7.92.D7.95.D7.A8.D7.99.D7.95.D7.AA_.D7.9E.D7.A9.D7.A0.D7.94_.D7.91.D7.93.D7.A4.D7.99_.D7.A7.D7.98.D7.92.D7.95.D7.A8.D7.99.D7.95.D7.AA Thanks, Yonidebest
The discussion was moved to: http://he.wikipedia.org/wiki/%D7%A9%D7%99%D7%97%D7%AA_%D7%95%D7%99%D7%A7%D7%99%D7%A4%D7%93%D7%99%D7%94:%D7%A7%D7%98%D7%92%D7%95%D7%A8%D7%99%D7%94#.D7.94.D7.A6.D7.92.D7.AA_.D7.A2.D7.A8.D7.9B.D7.99.D7.9D_.D7.A9.D7.9C_.D7.A7.D7.98.D7.92.D7.95.D7.A8.D7.99.D7.95.D7.AA_.D7.9E.D7.A9.D7.A0.D7.94_.D7.91.D7.93.D7.A4.D7.99_.D7.A7.D7.98.D7.92.D7.95.D7.A8.D7.99.D7.95.D7.AA
Done.
r27175 was marked as fixing this, but I've reverted it (r27490) as it's clearly incorrect (fails to initialise globals if they've been previously set, exposing them to being set via register_globals if enabled). This implies that there's an error in the configuration; that is the setting is being set before the extension is loaded.
The problem keeping this bug open seems to be one of getting the config scripts sorted out. However, I would like to point out that the "right" way to set this option has changed as of r36772. Please use the following now: $wgCategoryTreeCategoryPageOptions['mode'] = CT_MODE_PAGES;
moving to wikimedia/site-requests, since it's a config issue, not a CT bug
Ping
Should be good now: // CT_MODE_CATEGORIES 0 // CT_MODE_PAGES 10 // CT_MODE_ALL 20 +# OBSOLETE !! 'wgCategoryTreeCategoryPageMode' => array( 'default' => 0, 'hewiki' => 10, ), + +'wgCategoryTreeCategoryPageOptions' => array( + 'hewiki' => array( 'mode' => CT_MODE_PAGES ), # bug 11776 +), + +# @} end of CATEGORY TREE EXTENSION +