]> git.mxchange.org Git - friendica.git/blobdiff - include/auth_ejabberd.php
Degrade priority step by step
[friendica.git] / include / auth_ejabberd.php
index 8ee3af8e2be23148342d2eb84bcffb6707ba8da4..490ea0d1cb8e44982100690be9a92d229d456abb 100755 (executable)
@@ -32,6 +32,8 @@
  *
  */
 
+use Friendica\App;
+
 if (sizeof($_SERVER["argv"]) == 0)
        die();
 
@@ -47,8 +49,9 @@ require_once("boot.php");
 
 global $a, $db;
 
-if (is_null($a))
-       $a = new App;
+if (is_null($a)) {
+       $a = new App(dirname(__DIR__));
+}
 
 if (is_null($db)) {
        @include(".htconfig.php");
@@ -86,7 +89,7 @@ class exAuth {
 
                // Open the logfile if the logfile name is defined
                if ($this->sLogFile != '')
-                       $this->rLogFile = fopen($this->sLogFile, "a") or die("Error opening log file: ". $this->sLogFile);
+                       $this->rLogFile = fopen($this->sLogFile, "a") || die("Error opening log file: ". $this->sLogFile);
 
                $this->writeLog("[exAuth] start");
 
@@ -332,4 +335,3 @@ class exAuth {
                        fclose($this->rLogFile);
        }
 }
-?>