MDL-37191 do not timeout when uninstalling plugins

This commit is contained in:
Petr Škoda
2012-12-21 16:00:59 +01:00
parent 4a76321356
commit 8cc55f3058
+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 subplugins first
if ($type === 'mod') {
if (file_exists("$CFG->dirroot/mod/$name/db/subplugins.php")) {