Просмотр исходного кода

Merge pull request #1212 from Alkarex/json-php5.3

Define JSON_UNESCAPED_UNICODE for PHP 5.3.3
Alexandre Alapetite 9 лет назад
Родитель
Сommit
52fea863c1
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      lib/lib_rss.php

+ 2 - 0
lib/lib_rss.php

@@ -15,6 +15,8 @@ if (!function_exists('json_encode')) {
 	}
 }
 
+defined('JSON_UNESCAPED_UNICODE') or define('JSON_UNESCAPED_UNICODE', 256);	//PHP 5.3
+
 if (!function_exists('array_replace_recursive')) {	//PHP 5.2
 	function arr_recurse($array, $array1) {
 		foreach ($array1 as $key => $value) {