Remove get_app() in favor of DI::app()

This commit is contained in:
nupplaPhil
2020-01-04 23:42:01 +01:00
parent 5d20cd7e16
commit f0eea6f875
26 changed files with 110 additions and 97 deletions

View File

@@ -9,6 +9,7 @@ namespace Friendica\Content\Widget;
use Friendica\Content\Feature;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\DI;
/**
* TagCloud widget
@@ -24,7 +25,7 @@ class CalendarExport
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function getHTML() {
$a = \get_app();
$a = DI::app();
if (empty($a->data['user'])) {
return;