Set request method to XMLRPC if called via exec_xml()

This commit is contained in:
Kijin Sung 2016-02-05 11:41:27 +09:00
parent 6eb99c8486
commit 0c2c0d2b19
3 changed files with 17 additions and 9 deletions

View file

@ -235,6 +235,12 @@ class Context
$this->_setJSONRequestArgument();
$this->_setRequestArgument();
$this->_setUploadedArgument();
if(isset($_POST['_rx_ajax_compat']) && $_POST['_rx_ajax_compat'] === 'XMLRPC')
{
self::$_instance->request_method = 'XMLRPC';
self::$_instance->response_method = 'JSON';
}
$this->loadDBInfo();
if($this->db_info->use_sitelock == 'Y')