- LSsession : Remplacement de require_once() par des include_once()

This commit is contained in:
Benjamin Renard 2009-01-12 14:52:54 +00:00
parent 963714a5dd
commit b6de64dac0

View file

@ -147,7 +147,7 @@ class LSsession {
if (!$this -> loadLSclass($object,'LSobjects')) { if (!$this -> loadLSclass($object,'LSobjects')) {
$error = 1; $error = 1;
} }
if (!require_once( LS_OBJECTS_DIR . 'config.LSobjects.'.$object.'.php' )) { if (!include_once( LS_OBJECTS_DIR . 'config.LSobjects.'.$object.'.php' )) {
$error = 1; $error = 1;
} }
if ($error) { if ($error) {
@ -167,7 +167,7 @@ class LSsession {
* @retval boolean true si le chargement a réussi, false sinon. * @retval boolean true si le chargement a réussi, false sinon.
*/ */
function loadLSaddon($addon) { function loadLSaddon($addon) {
if(require_once LS_ADDONS_DIR .'LSaddons.'.$addon.'.php') { if(include_once LS_ADDONS_DIR .'LSaddons.'.$addon.'.php') {
@include_once(LS_CONF_DIR."LSaddons/config.LSaddons.".$addon.".php"); @include_once(LS_CONF_DIR."LSaddons/config.LSaddons.".$addon.".php");
if (!call_user_func('LSaddon_'. $addon .'_support')) { if (!call_user_func('LSaddon_'. $addon .'_support')) {
$GLOBALS['LSerror'] -> addErrorCode('LSsession_02',$addon); $GLOBALS['LSerror'] -> addErrorCode('LSsession_02',$addon);