fix json print

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6421 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-05-27 01:10:03 +00:00
parent fc1827f8d8
commit 32508ea820

View file

@ -169,9 +169,7 @@
$variables = $oModule->getVariables();
$variables['error'] = $oModule->getError();
$variables['message'] = $oModule->getMessage();
//if(function_exists('json_encode')) return json_encode($variables);
//else return json_encode2($variables);
$json = str_replace("\r\n",'\n',json_encode2($variables));
$json = preg_replace("(\r\n|\n)",'\n',json_encode2($variables));
return $json;
}