MDL-39088 migrate report uninstallation to plugin_manager

This commit is contained in:
Petr Škoda
2013-06-27 22:20:36 +02:00
parent 142f9d5087
commit 0a53e5c5ae
3 changed files with 6 additions and 43 deletions
+2 -6
View File
@@ -3883,10 +3883,6 @@ class plugininfo_report extends plugininfo_base {
public function is_uninstall_allowed() {
return true;
}
public function get_uninstall_url() {
return new moodle_url('/admin/reports.php', array('delete' => $this->name, 'sesskey' => sesskey()));
}
}
@@ -3895,8 +3891,8 @@ class plugininfo_report extends plugininfo_base {
*/
class plugininfo_local extends plugininfo_base {
public function get_uninstall_url() {
return new moodle_url('/admin/localplugins.php', array('delete' => $this->name, 'sesskey' => sesskey()));
public function is_uninstall_allowed() {
return true;
}
}