mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +00:00
* (bug 11383) Don't pull subcategories for non-category pages in category tree
This commit is contained in:
parent
f081ed2177
commit
6d8cbbd891
|
@ -166,6 +166,11 @@ class CategoryTree {
|
|||
function renderChildren( &$title, $mode = NULL, $depth=0 ) {
|
||||
global $wgCategoryTreeMaxChildren, $wgCategoryTreeDefaultMode;
|
||||
|
||||
if( $title->getNamespace() != NS_CATEGORY ) {
|
||||
// Non-categories can't have children. :)
|
||||
return '';
|
||||
}
|
||||
|
||||
$dbr =& wfGetDB( DB_SLAVE );
|
||||
|
||||
#additional stuff to be used if "transaltion" by interwiki-links is desired
|
||||
|
|
Loading…
Reference in a new issue