From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- includes/json/FormatJson.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes/json/FormatJson.php') diff --git a/includes/json/FormatJson.php b/includes/json/FormatJson.php index b7049aeb..006f7720 100644 --- a/includes/json/FormatJson.php +++ b/includes/json/FormatJson.php @@ -18,6 +18,11 @@ class FormatJson { * * @param $value Mixed: the value being encoded. Can be any type except a resource. * @param $isHtml Boolean + * + * @todo FIXME: "$isHtml" parameter's purpose is not documented. It appears to + * map to a parameter labeled "pretty-print output with indents and + * newlines" in Services_JSON::encode(), which has no string relation + * to HTML output. * * @return string */ @@ -25,7 +30,7 @@ class FormatJson { // Some versions of PHP have a broken json_encode, see PHP bug // 46944. Test encoding an affected character (U+20000) to // avoid this. - if ( !function_exists( 'json_encode' ) || $isHtml || strtolower( json_encode( "\xf0\xa0\x80\x80" ) ) != '\ud840\udc00' ) { + if ( !function_exists( 'json_encode' ) || $isHtml || strtolower( json_encode( "\xf0\xa0\x80\x80" ) ) != '"\ud840\udc00"' ) { $json = new Services_JSON(); return $json->encode( $value, $isHtml ); } else { -- cgit v1.2.2