Added some set_time_limit()s to import in case of slow servers timing out.

This commit is contained in:
thepurpleblob
2007-05-23 14:06:04 +00:00
parent 7c527b3b9d
commit eb813e917e
+6
View 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) {