Skip to content

A free, self-hostable news aggregator…

Merge dev conflicts

Alexandre Alapetite2bf35b23f554
diff --cc lib/lib_rss.php
index cf56ae9b2,986dc1fb6..82ddced2c
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@@ -15,6 -15,37 +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) {
- if (!isset($array[$key]) || (isset($array[$key]) && !is_array($array[$key]))) {
- $array[$key] = array(); //create new key in $array, if it is empty or not an array
- }
- if (is_array($value)) {
- $value = arr_recurse($array[$key], $value); // overwrite the value in the base array
- }
- $array[$key] = $value;
- }
- return $array;
- }
- function array_replace_recursive($array, $array1) { //http://php.net/manual/function.array-replace-recursive.php#92574
- // handle the arguments, merge one by one
- $args = func_get_args();
- $array = $args[0];
- if (!is_array($array)) {
- return $array;
- }
- for ($i = 1; $i < count($args); $i++) {
- if (is_array($args[$i])) {
- $array = arr_recurse($array, $args[$i]);
- }
- }
- return $array;
- }
-}
-
/**
* Build a directory path by concatenating a list of directory names.
*