mirror of
https://github.com/friendica/friendica
synced 2025-04-21 14:30:12 +00:00
Replace obsolete references to App baseURL and getApp by DI
This commit is contained in:
parent
3c76826793
commit
015db25d9f
5 changed files with 9 additions and 6 deletions
|
@ -17,6 +17,6 @@ class Instance extends Api
|
|||
*/
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
System::jsonExit(InstanceEntity::get(self::getApp()));
|
||||
System::jsonExit(InstanceEntity::get());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ class HoverCard extends BaseModule
|
|||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
$a = self::getApp();
|
||||
$a = DI::app();
|
||||
|
||||
if ((local_user()) && ($parameters['action'] ?? '') === 'view') {
|
||||
// A logged in user views a profile of a user
|
||||
|
|
|
@ -52,7 +52,7 @@ class OpenID extends BaseModule
|
|||
// successful OpenID login
|
||||
$session->remove('openid');
|
||||
|
||||
DI::auth()->setForUser(self::getApp(), $user, true, true);
|
||||
DI::auth()->setForUser(DI::app(), $user, true, true);
|
||||
|
||||
// just in case there was no return url set
|
||||
// and we fell through
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue