Page MenuHomePhabricator

Showing also articles in the CategoryTree of categories in he-wiki
Closed, ResolvedPublic

Description

Author: yonidebest

Description:
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


Version: unspecified
Severity: enhancement

Details

Reference
bz11776

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:00 PM
bzimport set Reference to bz11776.
bzimport added a subscriber: Unknown Object (MLST).

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

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
+