diff --git a/admin/tool/mobile/version.php b/admin/tool/mobile/version.php index 8c3f25bff77..98a820eebf8 100644 --- a/admin/tool/mobile/version.php +++ b/admin/tool/mobile/version.php @@ -26,3 +26,6 @@ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2016052305; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2016051900; // Requires this Moodle version. $plugin->component = 'tool_mobile'; // Full name of the plugin (used for diagnostics). +$plugin->dependencies = array( + 'webservice_rest' => 2016052300 +); diff --git a/lib/classes/plugininfo/webservice.php b/lib/classes/plugininfo/webservice.php index dce102dc6c9..b782dcfa7ba 100644 --- a/lib/classes/plugininfo/webservice.php +++ b/lib/classes/plugininfo/webservice.php @@ -79,6 +79,10 @@ class webservice extends base { } public function is_uninstall_allowed() { - return false; + // The xmlrpc plugin contains webservice_xmlrpc_client (used by core). + if ($this->name == 'xmlrpc') { + return false; + } + return true; } }