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

This commit is contained in:
thepurpleblob 2007-05-23 14:07:12 +00:00
parent 81a7a02b8f
commit 67c1252753

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) {