mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Merge branch 'rhymix:master' into master
This commit is contained in:
commit
dd8fc890f4
39 changed files with 396 additions and 220 deletions
|
|
@ -921,7 +921,7 @@ class ModuleObject extends BaseObject
|
|||
// execute api methods of the module if view action is and result is XMLRPC or JSON
|
||||
if(isset($this->module_info->module_type) && in_array($this->module_info->module_type, ['view', 'mobile']))
|
||||
{
|
||||
if(Context::getResponseMethod() == 'XMLRPC' || Context::getResponseMethod() == 'JSON')
|
||||
if ($this->getHttpStatusCode() < 400 && in_array(Context::getResponseMethod(), ['JSON', 'XMLRPC']))
|
||||
{
|
||||
$oAPI = getAPI($this->module_info->module);
|
||||
if($oAPI instanceof ModuleObject && method_exists($oAPI, $this->act))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue