old boot.php functions replaced in src/module

This commit is contained in:
Michael 2022-10-19 04:31:58 +00:00 committed by Hypolite Petovan
parent ba9f145ef7
commit d2da2492b7
21 changed files with 103 additions and 86 deletions

View file

@ -24,6 +24,7 @@ namespace Friendica\Module;
use Friendica\App;
use Friendica\BaseModule;
use Friendica\Core\L10n;
use Friendica\Core\Session;
use Friendica\Core\System;
use Friendica\Database\Database;
use Friendica\Model\Contact;
@ -90,8 +91,8 @@ class Magic extends BaseModule
}
// OpenWebAuth
if (local_user() && $owa) {
$user = User::getById(local_user());
if (Session::getLocalUser() && $owa) {
$user = User::getById(Session::getLocalUser());
// Extract the basepath
// NOTE: we need another solution because this does only work