Mass conversion to SpecialPageFactory service
[lhc/web/wiklou.git] / includes / parser / CoreParserFunctions.php
index ae7ca6d..1f5308f 100644 (file)
@@ -950,7 +950,8 @@ class CoreParserFunctions {
        }
 
        public static function special( $parser, $text ) {
-               list( $page, $subpage ) = SpecialPageFactory::resolveAlias( $text );
+               list( $page, $subpage ) = MediaWikiServices::getInstance()->getSpecialPageFactory()->
+                       resolveAlias( $text );
                if ( $page ) {
                        $title = SpecialPage::getTitleFor( $page, $subpage );
                        return $title->getPrefixedText();