Merge "MediaWiki.php: Make getUrlDomainDistance() actually static"

This commit is contained in:
jenkins-bot 2016-10-15 18:00:28 +00:00 committed by Gerrit Code Review
commit d96d1264ee

View 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 );