Merge branch 'w51_MDL-37191_m25_plugindelete' of git://github.com/skodak/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 8 Jan 2013 03:16:43 +0000 (11:16 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 8 Jan 2013 03:16:43 +0000 (11:16 +0800)
lib/adminlib.php

index 674fdb4..8994cd0 100644 (file)
@@ -123,6 +123,9 @@ define('INSECURE_DATAROOT_ERROR', 2);
 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);