Merge #1623 모바일에서도 api를 사용할 수 있도록 변경 by zfanta

* pr/1623:
  모바일에서도 api를 사용할 수 있도록 변경
This commit is contained in:
Kijin Sung 2015-10-08 15:03:18 +09:00
commit ff046e135e

View file

@ -472,8 +472,8 @@ class ModuleObject extends Object
return FALSE;
}
}
// execute api methos of the module if view action is and result is XMLRPC or JSON
if($this->module_info->module_type == 'view')
// execute api methods of the module if view action is and result is XMLRPC or JSON
if($this->module_info->module_type == 'view' || $this->module_info->module_type == 'mobile')
{
if(Context::getResponseMethod() == 'XMLRPC' || Context::getResponseMethod() == 'JSON')
{