X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPrefixindex.php;h=f7906dbb2977fd10c894da7fb4a763ecd8ff8d0c;hb=0fd6cab93875296beac0c1c30203ec569ef21747;hp=2a8a09d2661607f1f29596aefa2abac8ca97e215;hpb=a075f50a86be14347100f662ccd683af4f437090;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index 2a8a09d266..f7906dbb29 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -48,8 +48,6 @@ class SpecialPrefixindex extends SpecialAllPages { * @param string $par Becomes "FOO" when called like Special:Prefixindex/FOO (default null) */ function execute( $par ) { - global $wgContLang; - $this->setHeaders(); $this->outputHeader(); @@ -65,7 +63,7 @@ class SpecialPrefixindex extends SpecialAllPages { $this->hideRedirects = $request->getBool( 'hideredirects', $this->hideRedirects ); $this->stripPrefix = $request->getBool( 'stripprefix', $this->stripPrefix ); - $namespaces = $wgContLang->getNamespaces(); + $namespaces = MediaWikiServices::getInstance()->getContentLanguage()->getNamespaces(); $out->setPageTitle( ( $namespace > 0 && array_key_exists( $namespace, $namespaces ) ) ? $this->msg( 'prefixindex-namespace', str_replace( '_', ' ', $namespaces[$namespace] ) ) @@ -143,15 +141,13 @@ class SpecialPrefixindex extends SpecialAllPages { * @param string|null $from List all pages from this name (default false) */ protected function showPrefixChunk( $namespace, $prefix, $from = null ) { - global $wgContLang; - if ( $from === null ) { $from = $prefix; } $fromList = $this->getNamespaceKeyAndText( $namespace, $from ); $prefixList = $this->getNamespaceKeyAndText( $namespace, $prefix ); - $namespaces = $wgContLang->getNamespaces(); + $namespaces = MediaWikiServices::getInstance()->getContentLanguage()->getNamespaces(); $res = null; $n = 0; $nextRow = null;