X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FApps.php;h=36a980c29d2c737650ecec6abe24a1a46459487c;hb=b36d4eb0dd4bdc25a468c95c749bfae1b6324be9;hp=ea31140df63508fcd54dbecaa86ab42f931b9d23;hpb=ce578a77453fd421e9598c994ef008ad7e128de6;p=friendica.git diff --git a/src/Module/Apps.php b/src/Module/Apps.php index ea31140df6..36a980c29d 100644 --- a/src/Module/Apps.php +++ b/src/Module/Apps.php @@ -1,6 +1,6 @@ get('config', 'private_addons'); - if ($privateaddons === "1" && !local_user()) { + if ($privateaddons === "1" && !Session::getLocalUser()) { $baseUrl->redirect(); } } - public function content(): string + protected function content(array $request = []): string { $apps = Nav::getAppMenu(); if (count($apps) == 0) { - notice($this->l10n->t('No installed applications.')); + DI::sysmsg()->addNotice($this->t('No installed applications.')); } $tpl = Renderer::getMarkupTemplate('apps.tpl'); return Renderer::replaceMacros($tpl, [ - '$title' => $this->l10n->t('Applications'), + '$title' => $this->t('Applications'), '$apps' => $apps, ]); }