X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUncategorizedpages.php;h=8251d5b359ed36d5c234b3bc55ee9c94491c781e;hb=d949901f3cc991d41d10eb2b2dcf62a46c1ff6bd;hp=c6a4215b6f3d73baef40fc6531b81b4a2866a243;hpb=374cce86c81e61f7e0aacc38defd4d2c35313c98;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUncategorizedpages.php b/includes/specials/SpecialUncategorizedpages.php index c6a4215b6f..8251d5b359 100644 --- a/includes/specials/SpecialUncategorizedpages.php +++ b/includes/specials/SpecialUncategorizedpages.php @@ -25,8 +25,8 @@ * A special page looking for page without any category. * * @ingroup SpecialPage + * @todo FIXME: Make $requestedNamespace selectable, unify all subclasses into one */ -// @todo FIXME: Make $requestedNamespace selectable, unify all subclasses into one class UncategorizedPagesPage extends PageQueryPage { protected $requestedNamespace = false; @@ -58,7 +58,9 @@ class UncategorizedPagesPage extends PageQueryPage { // otherwise, page_namespace is requestedNamespace 'conds' => array( 'cl_from IS NULL', - 'page_namespace' => ( $this->requestedNamespace !== false ? $this->requestedNamespace : MWNamespace::getContentNamespaces() ), + 'page_namespace' => $this->requestedNamespace !== false + ? $this->requestedNamespace + : MWNamespace::getContentNamespaces(), 'page_is_redirect' => 0 ), 'join_conds' => array(