mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-09 19:18:22 +01:00
Comments
This commit is contained in:
@@ -232,10 +232,11 @@ function dol_getprefix()
|
||||
function dol_include_once($relpath, $classname='')
|
||||
{
|
||||
global $conf,$langs,$user,$mysoc; // Other global var must be retreived with $GLOBALS['var']
|
||||
|
||||
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 {
|
||||
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