/** * Add a subcategory to the internal lists */ function addSubcategoryObject(Category $cat, $sortkey, $pageLength) { global $wgRequest; $title = $cat->getTitle(); if ($wgRequest->getCheck('notree')) { return parent::addSubcategoryObject($cat, $sortkey, $pageLength); } $tree = $this->getCategoryTree(); $this->children[] = $tree->renderNodeInfo($title, $cat); $this->children_start_char[] = $this->getSubcategorySortChar($title, $sortkey); }
/** * Add a subcategory to the internal lists */ function addSubcategoryObject($cat, $sortkey, $pageLength) { global $wgContLang, $wgOut, $wgRequest; $title = $cat->getTitle(); if ($wgRequest->getCheck('notree')) { return parent::addSubcategoryObject($cat, $sortkey, $pageLength); } /*if ( ! $GLOBALS['wgCategoryTreeUnifiedView'] ) { $this->child_cats[] = $cat; return parent::addSubcategory( $cat, $sortkey, $pageLength ); }*/ $tree = $this->getCategoryTree(); $this->children[] = $tree->renderNodeInfo($title, $cat); $this->children_start_char[] = $this->getSubcategorySortChar($title, $sortkey); }