forked from Wavyzz/dolibarr
Comments
This commit is contained in:
@@ -232,10 +232,11 @@ function dol_getprefix()
|
|||||||
function dol_include_once($relpath, $classname='')
|
function dol_include_once($relpath, $classname='')
|
||||||
{
|
{
|
||||||
global $conf,$langs,$user,$mysoc; // Other global var must be retreived with $GLOBALS['var']
|
global $conf,$langs,$user,$mysoc; // Other global var must be retreived with $GLOBALS['var']
|
||||||
|
|
||||||
if (! empty($classname) && ! class_exists($classname)) {
|
if (! empty($classname) && ! class_exists($classname)) {
|
||||||
return @include dol_buildpath($relpath);
|
return @include dol_buildpath($relpath); // Remove @ to find error into php log file if you have problems
|
||||||
} else {
|
} else {
|
||||||
return @include_once dol_buildpath($relpath);
|
return @include_once dol_buildpath($relpath); // Remove @ to find error into php log file if you have problems
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user