Merge "Adding mobile target to mediawiki.template.mustache"
[lhc/web/wiklou.git] / includes / site / MediaWikiSite.php
index 4854bcb..95631f8 100644 (file)
@@ -116,7 +116,7 @@ class MediaWikiSite extends Site {
                        // Make sure the string is normalized into NFC (due to the bug 40017)
                        // but do nothing to the whitespaces, that should work appropriately.
                        // @see https://bugzilla.wikimedia.org/show_bug.cgi?id=40017
-                       $pageName = UtfNormal::cleanUp( $pageName );
+                       $pageName = UtfNormal\Validator::cleanUp( $pageName );
 
                        // Build the args for the specific call
                        $args = array(
@@ -137,7 +137,7 @@ class MediaWikiSite extends Site {
 
                        // Go on call the external site
                        // @todo we need a good way to specify a timeout here.
-                       $ret = Http::get( $url );
+                       $ret = Http::get( $url, array(), __METHOD__ );
                }
 
                if ( $ret === false ) {
@@ -215,7 +215,7 @@ class MediaWikiSite extends Site {
                        // Filter the substructure down to what we actually are using.
                        $collectedHits = array_filter(
                                array_values( $externalData['query'][$listId] ),
-                               function( $a ) use ( $fieldId, $pageTitle ) {
+                               function ( $a ) use ( $fieldId, $pageTitle ) {
                                        return $a[$fieldId] === $pageTitle;
                                }
                        );