Skip to content

Commit

Permalink
Merge branch 'MDL-50798-28' of git://github.com/merrill-oakland/moodl…
Browse files Browse the repository at this point in the history
…e into MOODLE_28_STABLE
  • Loading branch information
danpoltawski committed Jul 13, 2015
2 parents f5e5c91 + 92c067f commit f72723f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions question/classes/bank/view.php
Expand Up @@ -664,6 +664,11 @@ protected function display_question_list($contexts, $pageurl, $categoryandcontex
$showquestiontext = false, $addcontexts = array()) {
global $CFG, $DB, $OUTPUT;

// This function can be moderately slow with large question counts and may time out.
// We probably do not want to raise it to unlimited, so randomly picking 5 minutes.
// Note: We do not call this in the loop because quiz ob_ captures this function (see raise() PHP doc).
\core_php_time_limit::raise(300);

$category = $this->get_current_category($categoryandcontext);

$strselectall = get_string('selectall');
Expand Down

0 comments on commit f72723f

Please sign in to comment.