]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20720 fixed notices when deleting modules
authorPetr Skoda <skodak@moodle.org>
Mon, 2 Nov 2009 16:13:22 +0000 (16:13 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 2 Nov 2009 16:13:22 +0000 (16:13 +0000)
admin/modules.php

index 20e8d6ce3a2bcecd910e4a002484ce62dcbf6c4e..371695a2d51efa7f29d7e62a1a35d99d05927066 100644 (file)
             uninstall_plugin('mod', $delete);
             $a->module = $strmodulename;
             $a->directory = "$CFG->dirroot/mod/$delete";
-            notice(get_string("moduledeletefiles", "", $a), "modules.php");
+            echo $OUTPUT->notification(get_string("moduledeletefiles", "", $a), 'notifysuccess');
+            echo $OUTPUT->continue_button("modules.php");
+            echo $OUTPUT->footer();
+            exit;
         }
     }