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:
Ingo Schommer 2008-08-11 06:27:53 +00:00
parent 970cba1b5d
commit b795186d0a

View File

@ -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);
//}