mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
old boot.php functions replaced in src/module
This commit is contained in:
parent
ba9f145ef7
commit
d2da2492b7
21 changed files with 103 additions and 86 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue