From 448d977f14c895d8647c0c817cc4d17a336771e8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 29 Apr 2020 19:33:32 +0200 Subject: [PATCH] LScli : load some classes by default --- public_html/bin/ldapsaisie.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public_html/bin/ldapsaisie.php b/public_html/bin/ldapsaisie.php index d6d17708..5cfaa08e 100755 --- a/public_html/bin/ldapsaisie.php +++ b/public_html/bin/ldapsaisie.php @@ -25,6 +25,11 @@ require_once realpath(dirname(__FILE__)."/../")."/core.php"; if(LSsession :: startCliLSsession()) { + // Load some default classes + foreach(array('LSsearch', 'LSldapObject') as $class) + if (!LSsession :: loadLSClass($class)) + LSlog :: fatal("Fail to load class $class."); + // Handle CLI arguments and run command (if provided) LScli :: handle_args();