30
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-05-31 21:30:47 +00:00

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.
This commit is contained in:
nicolaasuni 2013-05-15 18:08:42 +01:00
parent 8014a13226
commit 36e9a19bfb
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ if (!defined('K_TCPDF_EXTERNAL_CONFIG')) {
// Try to automatically set the value for the following K_PATH_MAIN constant. // 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. // NOTE: delete this section and manually set the K_PATH_MAIN constant below for better performances.
$tcpdf_install_dirs = array(); $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 // default config file
$k_path_main_default = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config')))); $k_path_main_default = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))));
if (substr($k_path_main_default, -1) != '/') { if (substr($k_path_main_default, -1) != '/') {

View File

@ -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. // 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. // NOTE: delete this section and manually set the K_PATH_MAIN constant below for better performances.
$tcpdf_install_dirs = array(); $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 // default config file
$k_path_main_default = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('examples/config')))); $k_path_main_default = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('examples/config'))));
if (substr($k_path_main_default, -1) != '/') { if (substr($k_path_main_default, -1) != '/') {