X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMostinterwikis.php;h=0fcf8420b9d4dd529f97cadd0942ae68efe03c46;hp=c9638384620b088555f13a53c96215ee14dc1671;hb=315df62758acb54c52f42bd3067a9ae95bcb3aa6;hpb=d13aa39760f9de5ab9c638ae417f94c786244ee7 diff --git a/includes/specials/SpecialMostinterwikis.php b/includes/specials/SpecialMostinterwikis.php index c963838462..0fcf8420b9 100644 --- a/includes/specials/SpecialMostinterwikis.php +++ b/includes/specials/SpecialMostinterwikis.php @@ -21,6 +21,7 @@ * @ingroup SpecialPage */ +use MediaWiki\MediaWikiServices; use Wikimedia\Rdbms\IResultWrapper; use Wikimedia\Rdbms\IDatabase; @@ -52,7 +53,8 @@ class MostinterwikisPage extends QueryPage { 'title' => 'page_title', 'value' => 'COUNT(*)' ], 'conds' => [ - 'page_namespace' => MWNamespace::getContentNamespaces() + 'page_namespace' => + MediaWikiServices::getInstance()->getNamespaceInfo()->getContentNamespaces() ], 'options' => [ 'HAVING' => 'COUNT(*) > 1', 'GROUP BY' => [