From 8cc55f3058b455f8d86cc0d5d8674e11124f5193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20S=CC=8Ckoda?= Date: Fri, 21 Dec 2012 16:00:59 +0100 Subject: [PATCH] MDL-37191 do not timeout when uninstalling plugins --- lib/adminlib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/adminlib.php b/lib/adminlib.php index 2812fef006b..d638e50fb3c 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -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")) {