From 64e967a340d970f7f475bc9b7f0d331b3f2deeed Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Thu, 5 Jan 2012 00:41:06 +0100 Subject: [PATCH] Try to fix usage of a cache dir by tcpdf --- htdocs/includes/dolibarr_changes.txt | 5 +++++ htdocs/includes/tcpdf/config/tcpdf_config.php | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/htdocs/includes/dolibarr_changes.txt b/htdocs/includes/dolibarr_changes.txt index 70ec1ccc07c..0eb11636295 100644 --- a/htdocs/includes/dolibarr_changes.txt +++ b/htdocs/includes/dolibarr_changes.txt @@ -32,6 +32,11 @@ public function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false, $ln= * 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) +* Replace in tcpdf_config.php +define ('K_PATH_CACHE', K_PATH_MAIN.'cache/'); +with +define ('K_PATH_CACHE', DOL_DATA_ROOT.'/admin/temp/'); +dol_mkdir(K_PATH_CACHE); JSGANTT: diff --git a/htdocs/includes/tcpdf/config/tcpdf_config.php b/htdocs/includes/tcpdf/config/tcpdf_config.php index 811145f7671..55304504120 100644 --- a/htdocs/includes/tcpdf/config/tcpdf_config.php +++ b/htdocs/includes/tcpdf/config/tcpdf_config.php @@ -81,7 +81,9 @@ 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) -- GitLab