Creating Friendica\App\Mode for encapsulating the App Mode

This commit is contained in:
Philipp Holzer
2018-10-05 22:36:09 +02:00
parent 3c7d41c388
commit 065340dc32
9 changed files with 128 additions and 89 deletions

View File

@@ -54,7 +54,7 @@ require_once "include/dba.php";
$a = new App(dirname(__DIR__));
if ($a->mode === App::MODE_NORMAL) {
if (App\Mode::isNormal()) {
$oAuth = new ExAuth();
$oAuth->readStdin();
}