From: Sam Reed Date: Mon, 14 Feb 2011 14:09:25 +0000 (+0000) Subject: Explicitally define $domain X-Git-Tag: 1.31.0-rc.0~31994 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=c5f1a2a0316a7ee6ac9dc0560abd262738707409;p=lhc%2Fweb%2Fwiklou.git Explicitally define $domain Documentation --- diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 2d3d8c32ab..7e5bc1f4bb 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -89,6 +89,7 @@ class Http { // Check if this domain or any superdomain is listed in $wgConf as a local virtual host $domainParts = array_reverse( $domainParts ); + $domain = ''; for ( $i = 0; $i < count( $domainParts ); $i++ ) { $domainPart = $domainParts[$i]; if ( $i == 0 ) { @@ -198,6 +199,8 @@ class MWHttpRequest { /** * Generate a new request object + * @param $url String: url to use + * @param $options Array: (optional) extra params to pass (see Http::request()) * @see MWHttpRequest::__construct */ public static function factory( $url, $options = null ) {