From: Niklas Laxström Date: Thu, 26 Mar 2015 10:44:18 +0000 (+0100) Subject: Make wfWarn name the caller in Http::get X-Git-Tag: 1.31.0-rc.0~11991 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=95cca8960c3ff2a1aa7cef4e763156e976d5767b;p=lhc%2Fweb%2Fwiklou.git Make wfWarn name the caller in Http::get The warning is useless as of now, unless you have stracktraces. Bug: T91764 Change-Id: I8fcae49f3943ab2f6d13519c5f8d370ed147b185 --- diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 36e06b5e19..8e05f597d9 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -96,7 +96,7 @@ class Http { if ( isset( $args[1] ) && ( is_string( $args[1] ) || is_numeric( $args[1] ) ) ) { // Second was used to be the timeout // And third parameter used to be $options - wfWarn( "Second parameter should not be a timeout." ); + wfWarn( "Second parameter should not be a timeout.", 2 ); $options = isset( $args[2] ) && is_array( $args[2] ) ? $args[2] : array(); $options['timeout'] = $args[1];