It's only called once, and that call is static. It also doesn't use $this.
[error] /w/index.php?title=New_new_page&action=purge
ErrorException from line 610 of /vagrant/mediawiki/includes/MediaWiki.php: PHP Strict Standards: Non-static method MediaWiki::getUrlDomainDistance() should not be called statically
Change-Id: Ice66937a32193720c52df39bcea90659a8d9f653
* @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 );