MDL-39088 migrate editor uninstallation to plugin_manager

This commit is contained in:
Petr Škoda
2013-06-27 22:20:35 +02:00
parent 8a953d629f
commit b07526e8de
4 changed files with 14 additions and 47 deletions
+3 -5
View File
@@ -5943,11 +5943,9 @@ class admin_setting_manageeditors extends admin_setting {
$settings = '';
}
if ($editor === 'textarea') {
$uninstall = '';
} else {
$uurl = new moodle_url('/admin/editors.php', array('action'=>'uninstall', 'editor'=>$editor, 'sesskey'=>sesskey()));
$uninstall = html_writer::link($uurl, $struninstall);
$uninstall = '';
if ($deleteurl = plugin_manager::instance()->get_uninstall_url('editor_'.$editor)) {
$uninstall = html_writer::link($deleteurl, $struninstall);
}
// add a row to the table