BUG 6400 Replacing json_encode|json_decode by their G implementations

This fixes the problem of some pages of ProcessMaker not working on
PHP 5.1, since there is no json_encode or json_decode native functions
on PHP 5.1.
This commit is contained in:
Alexandre Rosenfeld
2011-04-19 16:26:20 -04:00
parent f6124fa30d
commit 50bf854bee
29 changed files with 112 additions and 112 deletions

View File

@@ -261,12 +261,12 @@
$result['ROUTES'] = $arrayRoutes;
$result['EVENTS'] = $arrayEvents;
$result['GATEWAYS'] = $arrayGateways;
$aTasks = json_encode($arrayTasks);
$aSubProcess = json_encode($arraySubProcess);
$aRoutes = json_encode($arrayRoutes);
$aEvents = json_encode($arrayEvents);
$aGateways = json_encode($arrayGateways);
$aProcess = json_encode($process);
$aLanes = json_encode($lanes);
$aTasks = G::json_encode($arrayTasks);
$aSubProcess = G::json_encode($arraySubProcess);
$aRoutes = G::json_encode($arrayRoutes);
$aEvents = G::json_encode($arrayEvents);
$aGateways = G::json_encode($arrayGateways);
$aProcess = G::json_encode($process);
$aLanes = G::json_encode($lanes);
echo "tasks:$aTasks|gateways:$aGateways|events:$aEvents|annotations:$aLanes|process:$aProcess|subprocess:$aSubProcess|routes:$aRoutes";
?>
?>