From 6dbd989314df1d3198ea7da5a2ebad1cf0cb5a98 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sat, 9 Mar 2019 14:04:28 +0100 Subject: [PATCH] GlobalFunctions: Document the usage of wfUrlencode( null ) This was introduced for testing in 53b0052df. Change-Id: I318d6d6c04334ea75fbc9ac1771fab9a9db8cb83 --- includes/GlobalFunctions.php | 1 + 1 file changed, 1 insertion(+) 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 ''; } -- 2.20.1