Remove debugging code accidentally committed in r86253
[lhc/web/wiklou.git] / includes / json / FormatJson.php
index f9667f5..6e58434 100644 (file)
@@ -30,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 {