Permalink
Browse files

MDL-13204 execution time - give extra time to checker because they ca…

…n run looong; backported from HEAD
  • Loading branch information...
1 parent 085ccd8 commit 23acf9f241f64fb058974a8f525b0362e9abf663 stronk7 committed May 30, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 admin/xmldb/actions/check_indexes/check_indexes.class.php
@@ -213,6 +213,10 @@ function invoke() {
$o.=' </ul>';
}
$o.=' </li>';
+ /// Give the script some more time (resetting to current if exists)
+ if ($currenttl = @ini_get('max_execution_time')) {
+ @ini_set('max_execution_time',$currenttl);
+ }
}
$o.=' </ul>';
}

0 comments on commit 23acf9f

Please sign in to comment.