GlobalFunctions: Document the usage of wfUrlencode( null )
authorFomafix <fomafix@googlemail.com>
Sat, 9 Mar 2019 13:04:28 +0000 (14:04 +0100)
committerFomafix <fomafix@googlemail.com>
Mon, 25 Mar 2019 17:24:53 +0000 (18:24 +0100)
This was introduced for testing in 53b0052df.

Change-Id: I318d6d6c04334ea75fbc9ac1771fab9a9db8cb83

includes/GlobalFunctions.php

index 319bf63..55b78ac 100644 (file)
@@ -334,6 +334,7 @@ function wfUrlencode( $s ) {
        static $needle;
 
        if ( is_null( $s ) ) {
+               // Reset $needle for testing.
                $needle = null;
                return '';
        }