diff options
| author | 2017-12-12 21:40:30 +0100 | |
|---|---|---|
| committer | 2017-12-12 21:40:30 +0100 | |
| commit | 18b240a65e1af5af8751443eb6cd935b784dd117 (patch) | |
| tree | b7e6c54c6ae71629b6101ab386b3b43bd32cbb10 /lib/lib_rss.php | |
| parent | eca01e366481c73d24d3db8d488a53d38d6ecf5d (diff) | |
| parent | 52d09886558361bd818182da9ddc204e83f618ba (diff) | |
Merge pull request #1717 from Alkarex/dir_in_require
Use __DIR__ for relative include and require
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index c06157164..e9c4da049 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -4,7 +4,7 @@ if (version_compare(PHP_VERSION, '5.3.8', '<')) { } if (!function_exists('json_decode')) { - require_once('JSON.php'); + require_once(__DIR__ . '/JSON.php'); function json_decode($var, $assoc = false) { $JSON = new Services_JSON($assoc ? SERVICES_JSON_LOOSE_TYPE : 0); return $JSON->decode($var); @@ -12,7 +12,7 @@ if (!function_exists('json_decode')) { } if (!function_exists('json_encode')) { - require_once('JSON.php'); + require_once(__DIR__ . '/JSON.php'); function json_encode($var) { $JSON = new Services_JSON(); return $JSON->encodeUnsafe($var); |
