mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 01:42:14 +09:00
fix json print
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6421 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fc1827f8d8
commit
32508ea820
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue