Skip to content
Browse files

MDL-32349 Installing can time out with large number of plugins

  • Loading branch information...
1 parent b054ead commit 167c8c6714db2ca8cc729d73e5f47141a041c1b6 @sammarshallou sammarshallou committed with samhemelryk
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/upgradelib.php
2 lib/upgradelib.php
@@ -276,6 +276,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

0 comments on commit 167c8c6

Please sign in to comment.
Something went wrong with that request. Please try again.