mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixed JSON.php include path in Convert.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60412 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
970cba1b5d
commit
b795186d0a
@ -82,7 +82,7 @@ class Convert extends Object {
|
||||
if(function_exists('json_encode')) {
|
||||
return json_encode($val);
|
||||
} else {
|
||||
require_once(Director::baseFolder() . '/sapphire/misc/json/JSON.php');
|
||||
require_once(Director::baseFolder() . '/sapphire/thirdparty/json/JSON.php');
|
||||
$json = new Services_JSON();
|
||||
return $json->encode($val);
|
||||
}
|
||||
@ -165,7 +165,7 @@ class Convert extends Object {
|
||||
//if(function_exists('json_decode')) {
|
||||
// return json_decode($val);
|
||||
//} else {
|
||||
require_once(Director::baseFolder() . '/sapphire/misc/json/JSON.php');
|
||||
require_once(Director::baseFolder() . '/sapphire/thirdparty/json/JSON.php');
|
||||
$json = new Services_JSON();
|
||||
return $json->decode($val);
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user