diff --git a/includes/CategoryTree.php b/includes/CategoryTree.php index c70ac2d5..b7572960 100644 --- a/includes/CategoryTree.php +++ b/includes/CategoryTree.php @@ -468,9 +468,7 @@ class CategoryTree { foreach ( $res as $row ) { $title = Title::newFromText( $row->page_title, $row->page_namespace ); // Page name could have slashes, check the subpage for valid language built-in codes - $isValidLangCode = $title->getSubpageText(); - - if ( $title !== null && $isValidLangCode ) { + if ( $title !== null && $title->getSubpageText() ) { $lb->addObj( $title->getBaseTitle() ); } }