Merge "GlobalFunctions: Document the usage of wfUrlencode( null )"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 25 Mar 2019 21:07:11 +0000 (21:07 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 25 Mar 2019 21:07:11 +0000 (21:07 +0000)
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 '';
        }