X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fauth_ejabberd.php;h=490ea0d1cb8e44982100690be9a92d229d456abb;hb=2bad626be6a17423565a7aa69f001b8997da3efd;hp=0b0f263ea54e5dac5fc777dabc359a5c494aa5b0;hpb=1d427aa214b431a0d31da55ae996bb9a33da8ae8;p=friendica.git diff --git a/include/auth_ejabberd.php b/include/auth_ejabberd.php index 0b0f263ea5..490ea0d1cb 100755 --- a/include/auth_ejabberd.php +++ b/include/auth_ejabberd.php @@ -49,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"); @@ -88,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");