Update Core Login/Backend for correnct db class reference

ACL\Login and Admin\Backend do not extend DB\IO anymore which was a hold
over from old extend Class\Basic usage.
The old DB_CONFIG parameter has been replaced with DB\IO Object.
Also Admin\Backend has a language class overide loder like ACL\Login
This commit is contained in:
Clemens Schwaighofer
2022-03-16 10:27:55 +09:00
parent 7d1d795b29
commit b13f84b7ed
7 changed files with 196 additions and 115 deletions

View File

@@ -57,8 +57,10 @@ $log = new CoreLibs\Debug\Logging([
'echo_all' => $ECHO_ALL,
'print_all' => $PRINT_ALL,
]);
// db connection
$db = new CoreLibs\DB\IO(DB_CONFIG, $log);
// login page
$login = new CoreLibs\ACL\Login(DB_CONFIG, $log);
$login = new CoreLibs\ACL\Login($db, $log);
// flush and start
ob_end_flush();
// turn off set log per class