WYSIWYG EDITOR json changes

WYSIWYG EDITOR json changes
This commit is contained in:
norahmollo
2012-11-30 14:23:16 +00:00
parent 562cf996a3
commit e6e008b88d

View File

@@ -39,7 +39,7 @@ try {
//$oJSON = new Services_JSON();
if (isset( $_REQUEST['data'] )) {
$oData = G::json_decode( stripslashes( $_REQUEST['data'] ) );
$oData = Bootstrap::json_decode( stripslashes( $_REQUEST['data'] ) );
//$oData = $oJSON->decode( stripslashes( $_REQUEST['data'] ) );
$sOutput = '';
$sTask = '';
@@ -319,7 +319,7 @@ try {
$oProcessMap->processFilesManager( $oData->pro_uid );
break;
case 'exploreDirectory':
$objData = G::json_decode( $_REQUEST['data'] );
$objData = Bootstrap::json_decode( $_REQUEST['data'] );
$_SESSION['PFMDirectory'] = $objData->{'main_directory'};
$oProcessMap->exploreDirectory( $oData->pro_uid, $oData->main_directory, $oData->directory );
break;
@@ -421,8 +421,7 @@ try {
$oResponse->sLink = '../processes/downloadPML?id=' . $oData->pro_uid . '&s=' . $sessionId;
}
$oResponse->bExists = $bExists;
$oJSON = new Services_JSON();
echo $oJSON->encode( $oResponse );
echo Bootstrap::json_encode( $oResponse );
break;
case 'editFile':
//echo $_REQUEST['filename'];
@@ -546,8 +545,7 @@ try {
$aVariables[] = $aFields[$key];
}
}
$oJSON = new Services_JSON();
echo $oJSON->encode( $aVariables );
echo Bootstrap::json_encode( $aVariables );
break;
case 'getVariablePrefix':
$_REQUEST['prefix'] = $_REQUEST['prefix']!=null?$_REQUEST['prefix']:'ID_TO_STRING';
@@ -607,8 +605,7 @@ try {
}
$response = new stdclass();
$response->casesNumRec = $casesNumRec;
$json = new Services_JSON();
$sOutput = $json->encode( $response );
echo Bootstrap::json_encode( $response );
break;
}
if (isset( $sOutput )) {