This commit is contained in:
Laurent Destailleur
2012-12-02 12:59:06 +01:00
parent 09bb10b2a6
commit 6fcc32b326

View File

@@ -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
}
}