mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-17 15:59:06 +01:00
- LSsession : Remplacement de require_once() par des include_once()
This commit is contained in:
parent
963714a5dd
commit
b6de64dac0
1 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ class LSsession {
|
|||
if (!$this -> loadLSclass($object,'LSobjects')) {
|
||||
$error = 1;
|
||||
}
|
||||
if (!require_once( LS_OBJECTS_DIR . 'config.LSobjects.'.$object.'.php' )) {
|
||||
if (!include_once( LS_OBJECTS_DIR . 'config.LSobjects.'.$object.'.php' )) {
|
||||
$error = 1;
|
||||
}
|
||||
if ($error) {
|
||||
|
@ -167,7 +167,7 @@ class LSsession {
|
|||
* @retval boolean true si le chargement a réussi, false sinon.
|
||||
*/
|
||||
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");
|
||||
if (!call_user_func('LSaddon_'. $addon .'_support')) {
|
||||
$GLOBALS['LSerror'] -> addErrorCode('LSsession_02',$addon);
|
||||
|
|
Loading…
Reference in a new issue