mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
parent
02731e1a57
commit
d240fcbb70
1 changed files with 2 additions and 2 deletions
|
|
@ -89,14 +89,14 @@ class DisplayHandler extends Handler
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(Context::getResponseMethod() == 'JSON' || Context::getResponseMethod() == 'JS_CALLBACK')
|
if(Context::getResponseMethod() == 'JSON' || Context::getResponseMethod() == 'JS_CALLBACK' || isset($_POST['_rx_ajax_compat']))
|
||||||
{
|
{
|
||||||
if(strpos($_SERVER['HTTP_ACCEPT'], 'json') !== false)
|
if(strpos($_SERVER['HTTP_ACCEPT'], 'json') !== false)
|
||||||
{
|
{
|
||||||
self::_printJSONHeader();
|
self::_printJSONHeader();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(Context::getResponseMethod() != 'HTML')
|
elseif(Context::getRequestMethod() == 'XMLRPC')
|
||||||
{
|
{
|
||||||
self::_printXMLHeader();
|
self::_printXMLHeader();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue