From 36e9a19bfbf67fc4517a706efb4c1c2f03927407 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Wed, 15 May 2013 18:08:42 +0100 Subject: [PATCH] 6.0.016 (2013-05-15) - The tcpdf_addfont.php tool was improved (thanks to Remi Collet). - Constant K_PATH_IMAGES is now automatically set in configuration file. --- config/tcpdf_config.php | 2 +- examples/config/tcpdf_config_alt.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/tcpdf_config.php b/config/tcpdf_config.php index cc3f9c9..39f59dd 100644 --- a/config/tcpdf_config.php +++ b/config/tcpdf_config.php @@ -58,7 +58,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) { // Try to automatically set the value for the following K_PATH_MAIN constant. // NOTE: delete this section and manually set the K_PATH_MAIN constant below for better performances. $tcpdf_install_dirs = array(); - if (strpos(dirname(__FILE__), '/config') !== false) { + if ((strpos(dirname(__FILE__), '/config') !== false) OR (strpos(dirname(__FILE__), '\config') !== false)) { // default config file $k_path_main_default = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); if (substr($k_path_main_default, -1) != '/') { diff --git a/examples/config/tcpdf_config_alt.php b/examples/config/tcpdf_config_alt.php index 01b797a..7fe4b59 100644 --- a/examples/config/tcpdf_config_alt.php +++ b/examples/config/tcpdf_config_alt.php @@ -57,7 +57,7 @@ $_SERVER['DOCUMENT_ROOT'] = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT'].'/' // Try to automatically set the value for the following K_PATH_MAIN constant. // NOTE: delete this section and manually set the K_PATH_MAIN constant below for better performances. $tcpdf_install_dirs = array(); -if (strpos(dirname(__FILE__), '/config') !== false) { +if ((strpos(dirname(__FILE__), '/config') !== false) OR (strpos(dirname(__FILE__), '\config') !== false)) { // default config file $k_path_main_default = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('examples/config')))); if (substr($k_path_main_default, -1) != '/') {