mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Added some set_time_limit()s in case of slow servers timing out.
This commit is contained in:
parent
81a7a02b8f
commit
67c1252753
@ -127,6 +127,9 @@ class qformat_default {
|
||||
*/
|
||||
function importprocess() {
|
||||
|
||||
// reset the timer in case file upload was slow
|
||||
@set_time_limit();
|
||||
|
||||
// STAGE 1: Parse the file
|
||||
notify( get_string('parsingquestions','quiz') );
|
||||
|
||||
@ -156,6 +159,9 @@ class qformat_default {
|
||||
|
||||
foreach ($questions as $question) { // Process and store each question
|
||||
|
||||
// reset the php timeout
|
||||
@set_time_limit();
|
||||
|
||||
// check for category modifiers
|
||||
if ($question->qtype=='category') {
|
||||
if ($this->catfromfile) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user