From 67c12527530cf9f51fc45a1174c49cb4660bf900 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Wed, 23 May 2007 14:07:12 +0000 Subject: [PATCH] Added some set_time_limit()s in case of slow servers timing out. --- question/format.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/question/format.php b/question/format.php index be585858c..b0c465fc4 100644 --- a/question/format.php +++ b/question/format.php @@ -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) { -- 2.11.4.GIT