1
1
Fork 0

Add Install Mode (Part 2)

- Added constants to class `App`
- Added global App-Mode to `dba:connect()` instead parameter `$install`
This commit is contained in:
Philipp Holzer 2018-04-28 12:36:40 +02:00
commit a97ad9dc42
7 changed files with 38 additions and 21 deletions

View file

@ -637,7 +637,7 @@ function logger($msg, $level = 0) {
// turn off logger in install mode
if (
$a->mode == APP_MODE_INSTALL
$a->mode == App::MODE_INSTALL
|| !dba::$connected
) {
return;
@ -709,7 +709,7 @@ function dlogger($msg, $level = 0) {
// turn off logger in install mode
if (
$a->mode == APP_MODE_INSTALL
$a->mode == App::MODE_INSTALL
|| !dba::$connected
) {
return;