MDL-37191 do not timeout when uninstalling plugins

This commit is contained in:
Petr Škoda
2012-12-21 15:58:25 +01:00
parent 0dc5a532ec
commit 3db309dcc4
+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);