Removed @ operator from dol_include_once

Adding @ operator to include_once makes include errors untraceable, it shouldn't be there. Errors must be thrown so that we notice them. It is PHP configuration's choice to decide wether to log them or print them.
This commit is contained in:
Marcos García 2014-07-14 19:16:28 +02:00
parent d02814192f
commit 8eced58ba0

View File

@ -243,9 +243,9 @@ 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); // Remove @ to find error into php log file if you have problems
return include dol_buildpath($relpath);
} else {
return @include_once dol_buildpath($relpath); // Remove @ to find error into php log file if you have problems
return include_once dol_buildpath($relpath);
}
}