From: Fomafix Date: Sat, 9 Mar 2019 13:04:28 +0000 (+0100) Subject: GlobalFunctions: Document the usage of wfUrlencode( null ) X-Git-Tag: 1.34.0-rc.0~2360^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=6dbd989314df1d3198ea7da5a2ebad1cf0cb5a98;p=lhc%2Fweb%2Fwiklou.git GlobalFunctions: Document the usage of wfUrlencode( null ) This was introduced for testing in 53b0052df. Change-Id: I318d6d6c04334ea75fbc9ac1771fab9a9db8cb83 --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 319bf6397e..55b78acf53 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -334,6 +334,7 @@ function wfUrlencode( $s ) { static $needle; if ( is_null( $s ) ) { + // Reset $needle for testing. $needle = null; return ''; }