]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
Replace rogue instance of "contacts" by "contact" (#5891)
[friendica.git] / bin / auth_ejabberd.php
index 7ad28c96f5660c3c8da843c91c97b3b308404426..e8a7b4963f629b8b9c31c4ca09c5d5e866776171 100755 (executable)
@@ -49,12 +49,11 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . "..");
 
 chdir($directory);
 
-require_once "boot.php";
-require_once "include/dba.php";
+require dirname(__DIR__) . '/vendor/autoload.php';
 
 $a = new App(dirname(__DIR__));
 
-if ($a->mode === App::MODE_NORMAL) {
+if ($a->getMode()->isNormal()) {
        $oAuth = new ExAuth();
        $oAuth->readStdin();
-}
\ No newline at end of file
+}