Merge "MediaWiki.php: Make getUrlDomainDistance() actually static"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 15 Oct 2016 18:00:28 +0000 (18:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 15 Oct 2016 18:00:28 +0000 (18:00 +0000)
includes/MediaWiki.php

index 218337a..f21128e 100644 (file)
@@ -678,7 +678,7 @@ class MediaWiki {
         * @param IContextSource $context
         * @return string|bool Either "local" or "remote" if in the farm, false otherwise
         */
-       private function getUrlDomainDistance( $url, IContextSource $context ) {
+       private static function getUrlDomainDistance( $url, IContextSource $context ) {
                static $relevantKeys = [ 'host' => true, 'port' => true ];
 
                $infoCandidate = wfParseUrl( $url );