MDL-53425 blocklib: Raise execution time for dashboard reset process

This commit is contained in:
Jun Pataleta
2016-05-30 14:12:28 +08:00
committed by David Monllao
parent 7c8f4f6b70
commit 46b888dbd6
+3
View File
@@ -146,6 +146,9 @@ function my_reset_page($userid, $private=MY_PAGE_PRIVATE, $pagetype='my-index')
function my_reset_page_for_all_users($private = MY_PAGE_PRIVATE, $pagetype = 'my-index') {
global $DB;
// This may take a while. Raise the execution time limit.
core_php_time_limit::raise();
// Find all the user pages.
$where = 'userid IS NOT NULL AND private = :private';
$params = array('private' => $private);