Fix: Remove warnings
This commit is contained in:
parent
8516fe4c01
commit
e790b37d03
@ -65,7 +65,8 @@ $font_loc = DOL_DOCUMENT_ROOT.'/includes/barcode/php-barcode/fonts/AerialBd.ttf'
|
|||||||
|
|
||||||
/* Automatic-Detection of Font if running Windows
|
/* Automatic-Detection of Font if running Windows
|
||||||
* kick this lines if you don't need them! */
|
* kick this lines if you don't need them! */
|
||||||
if (isset($_SERVER['WINDIR']) && file_exists($_SERVER['WINDIR'])){
|
// DOL_CHANGE LDR
|
||||||
|
if (isset($_SERVER['WINDIR']) && @file_exists($_SERVER['WINDIR'])){
|
||||||
$font_loc=$_SERVER['WINDIR']."\Fonts\arialbd.ttf";
|
$font_loc=$_SERVER['WINDIR']."\Fonts\arialbd.ttf";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,13 +77,13 @@ if (isset($_SERVER['WINDIR']) && file_exists($_SERVER['WINDIR'])){
|
|||||||
* leave blank if you don't have them :(
|
* leave blank if you don't have them :(
|
||||||
* genbarcode is needed to render encodings other than EAN-12/EAN-13/ISBN
|
* genbarcode is needed to render encodings other than EAN-12/EAN-13/ISBN
|
||||||
*/
|
*/
|
||||||
if (isset($_SERVER['WINDIR']) && file_exists($_SERVER['WINDIR']))
|
// DOL_CHANGE LDR
|
||||||
|
if (isset($_SERVER['WINDIR']) && @file_exists($_SERVER['WINDIR']))
|
||||||
{
|
{
|
||||||
$genbarcode_loc = DOL_DOCUMENT_ROOT.'/includes/barcode/php-barcode/genbarcode/genbarcode.exe';
|
$genbarcode_loc = DOL_DOCUMENT_ROOT.'/includes/barcode/php-barcode/genbarcode/genbarcode.exe';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//$genbarcode_loc = "/usr/local/bin/genbarcode";
|
|
||||||
$genbarcode_loc = $conf->global->GENBARCODE_LOCATION;
|
$genbarcode_loc = $conf->global->GENBARCODE_LOCATION;
|
||||||
}
|
}
|
||||||
//dol_syslog("genbarcode_loc=".$genbarcode_loc." - env_windows=".$_SERVER['WINDIR']);
|
//dol_syslog("genbarcode_loc=".$genbarcode_loc." - env_windows=".$_SERVER['WINDIR']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user