MDL-41245 fix redirect and missing string when cannot automatically delete uninstalle...
authorPetr Škoda <commits@skodak.org>
Wed, 28 Aug 2013 06:00:19 +0000 (08:00 +0200)
committerPetr Škoda <commits@skodak.org>
Wed, 28 Aug 2013 06:00:19 +0000 (08:00 +0200)
admin/renderer.php

index ffccc33..fad8eff 100644 (file)
@@ -448,7 +448,7 @@ class core_admin_renderer extends plugin_renderer_base {
     public function plugin_uninstall_results_page(plugin_manager $pluginman, plugininfo_base $pluginfo, progress_trace_buffer $progress) {
         $output = '';
 
-        $pluginname = $pluginman->plugin_name($pluginfo->component);
+        $pluginname = $pluginfo->component;
 
         $output .= $this->output->header();
         $output .= $this->output->heading(get_string('uninstalling', 'core_plugin', array('name' => $pluginname)));
@@ -457,7 +457,7 @@ class core_admin_renderer extends plugin_renderer_base {
 
         $output .= $this->output->box(get_string('uninstalldelete', 'core_plugin',
             array('name' => $pluginname, 'rootdir' => $pluginfo->rootdir)), 'generalbox uninstalldelete');
-        $output .= $this->output->continue_button($this->page->url);
+        $output .= $this->output->continue_button(new moodle_url('/admin/index.php'));
         $output .= $this->output->footer();
 
         return $output;