projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fc8223
)
Increased memory limit if reports in unicode (48M) as suggested in forum.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 24 Oct 2008 09:14:06 +0000
(09:14 +0000)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 24 Oct 2008 09:14:06 +0000
(09:14 +0000)
reporting/includes/class.pdf.inc
patch
|
blob
|
history
diff --git
a/reporting/includes/class.pdf.inc
b/reporting/includes/class.pdf.inc
index 7c182017526dc8cd406e95c39f3946f55e719ed5..e0b9de2fc819892f9350a7747ee92cff67249d69 100644
(file)
--- 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", "
25
M");
+ if ($
uni
)
+ ini_set("memory_limit", "
48
M");
$this->TCPDF('P', 'pt', $pageSize, $uni, $enc);
$this->setLanguageArray($l);
$this->setPrintHeader(false);