From ebb98bf53c8aab6ee1461f518d88baf32320cd0c Mon Sep 17 00:00:00 2001 From: sam marshall Date: Thu, 5 Apr 2012 17:14:39 +0100 Subject: [PATCH] MDL-32349 Installing can time out with large number of plugins --- lib/upgradelib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/upgradelib.php b/lib/upgradelib.php index 6db42165dc7..a41190efba0 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -314,6 +314,8 @@ function upgrade_plugins($type, $startcallback, $endcallback, $verbose) { $plugs = get_plugin_list($type); foreach ($plugs as $plug=>$fullplug) { + // Reset time so that it works when installing a large number of plugins + set_time_limit(600); $component = clean_param($type.'_'.$plug, PARAM_COMPONENT); // standardised plugin name // check plugin dir is valid name -- 2.43.0