Added some set_time_limit()s in case of slow servers timing out.
authorthepurpleblob <thepurpleblob>
Wed, 23 May 2007 14:07:12 +0000 (14:07 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 23 May 2007 14:07:12 +0000 (14:07 +0000)
question/format.php

index be585858c3b185a085d88c5ddbd0d40261189e6e..b0c465fc468c804d28b6f782d9f0a9b2e6eba0da 100644 (file)
@@ -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) {