From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- vendor/ruflin/elastica/lib/Elastica/JSON.php | 67 ++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 vendor/ruflin/elastica/lib/Elastica/JSON.php (limited to 'vendor/ruflin/elastica/lib/Elastica/JSON.php') diff --git a/vendor/ruflin/elastica/lib/Elastica/JSON.php b/vendor/ruflin/elastica/lib/Elastica/JSON.php new file mode 100644 index 00000000..921bc484 --- /dev/null +++ b/vendor/ruflin/elastica/lib/Elastica/JSON.php @@ -0,0 +1,67 @@ + 1 && $args[1] === 'JSON_ELASTICSEARCH') { + // Use built in JSON constants if available (php >= 5.4) + $args[1] = defined('JSON_UNESCAPED_UNICODE') ? JSON_UNESCAPED_UNICODE : 256; + } + + // run encode and output + return call_user_func_array('json_encode', $args); + } +} -- cgit v1.2.3-54-g00ecf