Permalink
Browse files

MDL-37191 do not timeout when uninstalling plugins

  • Loading branch information...
skodak committed Dec 21, 2012
1 parent 322af44 commit 5c0dd1fadd6849f39c42dad7e89abcd335e3632c
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/adminlib.php
View
@@ -123,6 +123,9 @@
function uninstall_plugin($type, $name) {
global $CFG, $DB, $OUTPUT;
+ // This may take a long time.
+ @set_time_limit(0);
+
// recursively uninstall all module/editor subplugins first
if ($type === 'mod' || $type === 'editor') {
$base = get_component_directory($type . '_' . $name);

0 comments on commit 5c0dd1f

Please sign in to comment.