mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
Apply numeric array conversion to every JSON request as well
This commit is contained in:
parent
fed4f950bf
commit
e2199f19ec
1 changed files with 9 additions and 13 deletions
|
|
@ -15,8 +15,6 @@ class JSONDisplayHandler
|
||||||
$variables['error'] = $oModule->getError();
|
$variables['error'] = $oModule->getError();
|
||||||
$variables['message'] = $oModule->getMessage();
|
$variables['message'] = $oModule->getMessage();
|
||||||
|
|
||||||
if (Context::getRequestMethod() === 'XMLRPC')
|
|
||||||
{
|
|
||||||
$temp = array();
|
$temp = array();
|
||||||
foreach ($variables as $key => $value)
|
foreach ($variables as $key => $value)
|
||||||
{
|
{
|
||||||
|
|
@ -29,10 +27,8 @@ class JSONDisplayHandler
|
||||||
$temp[$key] = $value;
|
$temp[$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$variables = $temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
return json_encode($variables);
|
return json_encode($temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue