From 8562cb677d10b608d2e16a88d0f9607f111f1325 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Sun, 15 Apr 2012 15:46:50 +0200 Subject: [PATCH] Fix: Restore lost fix into tcpdf --- dev/dolibarr_changes.txt | 2 +- htdocs/includes/tcpdf/config/tcpdf_config.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dev/dolibarr_changes.txt b/dev/dolibarr_changes.txt index 0eb11636295..5bf1664f695 100644 --- a/dev/dolibarr_changes.txt +++ b/dev/dolibarr_changes.txt @@ -30,7 +30,7 @@ public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln= by public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=false, $maxh=0, $valign='T', $fitcell=false) { -* Removed all fonts except dejavu* (greek, arab, persan, romanian, turkish), freemono* (russian), stsongstdlight* (chinese), helvetica* (all other) and useless directories (fonts/utils, docs, cache, images) +* Removed all fonts except dejavu* (used by greek, arab, persan, romanian, turkish), freemono* (russian), stsongstdlight* (chinese), helvetica* (all other) and useless directories (fonts/utils, docs, cache, images) * Replace in tcpdf_config.php define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); diff --git a/htdocs/includes/tcpdf/config/tcpdf_config.php b/htdocs/includes/tcpdf/config/tcpdf_config.php index e3b3e4a5f8e..2396ea7e260 100644 --- a/htdocs/includes/tcpdf/config/tcpdf_config.php +++ b/htdocs/includes/tcpdf/config/tcpdf_config.php @@ -91,12 +91,16 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) { /** * cache directory for temporary files (full path) */ - define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); +// define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); + define ('K_PATH_CACHE', DOL_DATA_ROOT.'/admin/temp/'); + dol_mkdir(K_PATH_CACHE); /** * cache directory for temporary files (url path) */ - define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); +// define ('K_PATH_URL_CACHE', K_PATH_URL.'cache/'); + define ('K_PATH_URL_CACHE', DOL_DATA_ROOT.'/admin/temp/'); + dol_mkdir(K_PATH_URL_CACHE); /** *images directory -- GitLab