From c5f1a2a0316a7ee6ac9dc0560abd262738707409 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 14 Feb 2011 14:09:25 +0000 Subject: [PATCH] Explicitally define $domain Documentation --- includes/HttpFunctions.php | 3 +++ 1 file changed, 3 insertions(+) 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 ) { -- 2.20.1