Browse Source

Prevent timeouts during the (lengthy) PDF conversion...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4293 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 năm trước cách đây
mục cha
commit
83d51e4c06
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      core/pdfbulkexport.class.inc.php

+ 3 - 0
core/pdfbulkexport.class.inc.php

@@ -174,6 +174,9 @@ EOF
 	{
 		$sData = parent::GetFooter();
 
+		// We need a lot of time for the PDF conversion
+		set_time_limit(60*10); // 10 minutes max ???
+		
 		require_once(APPROOT.'application/pdfpage.class.inc.php');
 		$oPage = new PDFPage(Dict::Format('Core:BulkExportOf_Class', MetaModel::GetName($this->oSearch->GetClass())), $this->aStatusInfo['page_size'], $this->aStatusInfo['page_orientation']);
 		$oPDF = $oPage->get_tcpdf();