[opw-web] Set a longer time limit when generating contract archive



commit ec482285fa0c3d2f2d101c6e13c401deb174509b
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Dec 15 16:59:34 2015 -0500

    Set a longer time limit when generating contract archive

 modules/mod_contract.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/modules/mod_contract.php b/modules/mod_contract.php
index 8952366..92a17c3 100644
--- a/modules/mod_contract.php
+++ b/modules/mod_contract.php
@@ -86,6 +86,9 @@ if ($action == 'edit_student' || $action == 'edit_mentor') {
 
     $user->restrict($user->is_admin);
 
+    // Generating PDF files can take a long time
+    set_time_limit(120); // Two minutes
+
     // We require this after checking for admin status to reduce any security exposure
     require_once('tcpdf/tcpdf.php');
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]