Skip to content

Commit

Permalink
MDL-56320 webservice: Allow uninstall of unused plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
micaherne committed Dec 5, 2016
1 parent 258d07d commit 23b9e2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions admin/tool/mobile/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@
$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
);
6 changes: 5 additions & 1 deletion lib/classes/plugininfo/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public function load_settings(part_of_admin_tree $adminroot, $parentnodename, $h
}

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;
}
}

0 comments on commit 23b9e2a

Please sign in to comment.