diff --git a/classes/module/ModuleObject.class.php b/classes/module/ModuleObject.class.php index 9485a74c4..7be9fe94a 100644 --- a/classes/module/ModuleObject.class.php +++ b/classes/module/ModuleObject.class.php @@ -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') {