32
1
mirror of https://github.com/vdm-io/tcpdf.git synced 2024-11-22 04:45:17 +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.
// 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) != '/') {

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.
// 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) != '/') {