From 3d4a3bd1e4afe2a3cf6a693942697aea2ea96dcf Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 11 Feb 2016 10:26:30 -0800 Subject: [PATCH] Stop using SiteConfiguration::isLocalVHost() It's deprecated and nothing sets it anymore Change-Id: Idad23551c7c31c9d05fd9e1be2efadc941860058 --- includes/HttpFunctions.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 5ede04f0da..a31b1576b2 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -131,7 +131,7 @@ class Http { * @return bool */ public static function isLocalURL( $url ) { - global $wgCommandLineMode, $wgLocalVirtualHosts, $wgConf; + global $wgCommandLineMode, $wgLocalVirtualHosts; if ( $wgCommandLineMode ) { return false; @@ -156,9 +156,7 @@ class Http { $domain = $domainPart . '.' . $domain; } - if ( in_array( $domain, $wgLocalVirtualHosts ) - || $wgConf->isLocalVHost( $domain ) - ) { + if ( in_array( $domain, $wgLocalVirtualHosts ) ) { return true; } } -- 2.20.1