MDL-37191 do not timeout when uninstalling plugins

This commit is contained in:
Petr Škoda
2012-12-21 15:59:15 +01:00
parent 322af447f5
commit 5c0dd1fadd
+3
View 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);