MDL-16007 - fix up calls to ignore_user_abort
authormjollnir_ <mjollnir_>
Tue, 12 Aug 2008 15:15:38 +0000 (15:15 +0000)
committermjollnir_ <mjollnir_>
Tue, 12 Aug 2008 15:15:38 +0000 (15:15 +0000)
lib/filelib.php

index 2340d6f9d23cf8e4683c0370cbf0e0e3d4f55c20..5f61ef5af18b607dad769f8b1b096bb10e0322a5 100644 (file)
@@ -646,7 +646,7 @@ function send_file($path, $filename, $lifetime = 'default' , $filter=0, $pathiss
     global $CFG, $COURSE, $SESSION;
 
     if ($dontdie) {
-        ignore_user_abort();
+        ignore_user_abort(true);
     }
 
     // MDL-11789, apply $CFG->filelifetime here
@@ -857,7 +857,7 @@ function send_stored_file($stored_file, $lifetime=86400 , $filter=0, $forcedownl
     global $CFG, $COURSE, $SESSION;
 
     if ($dontdie) {
-        ignore_user_abort();
+        ignore_user_abort(true);
     }
 
     session_write_close(); // unlock session during fileserving