From: Joe Hunt Date: Fri, 24 Oct 2008 09:14:06 +0000 (+0000) Subject: Increased memory limit if reports in unicode (48M) as suggested in forum. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1b6ddadfa37144e74862d5329914412941c63386;p=textcart.git Increased memory limit if reports in unicode (48M) as suggested in forum. --- diff --git a/reporting/includes/class.pdf.inc b/reporting/includes/class.pdf.inc index 7c18201..e0b9de2 100644 --- a/reporting/includes/class.pdf.inc +++ b/reporting/includes/class.pdf.inc @@ -58,8 +58,8 @@ class Cpdf extends TCPDF { $l = array('a_meta_charset' => 'ISO-8859-1', 'a_meta_dir' => 'ltr', 'a_meta_language' => 'en_GB', 'w_page' => 'page'); $enc = $l['a_meta_charset']; $uni = ($enc == 'UTF-8' || $enc == 'GB2312' ? true : false); - if ($enc == "GB2312") - ini_set("memory_limit", "25M"); + if ($uni) + ini_set("memory_limit", "48M"); $this->TCPDF('P', 'pt', $pageSize, $uni, $enc); $this->setLanguageArray($l); $this->setPrintHeader(false);