X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fapps.php;h=d497ce93a2812c6695dbc160bd491c8734562c65;hb=ed7bada71eb7e5d1c2953e94abb47b531781306d;hp=e807feae74e537c76110e33ccdf5f0ceb66bba63;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git diff --git a/mod/apps.php b/mod/apps.php index e807feae74..d497ce93a2 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -1,23 +1,33 @@ apps)==0) - notice( t('No installed applications.') . EOL); + $title = L10n::t('Applications'); - $tpl = get_markup_template("apps.tpl"); - return replace_macros($tpl, array( - '$title' => $title, - '$apps' => $a->apps, - )); -} + $apps = Nav::getAppMenu(); + + if (count($apps) == 0) { + notice(L10n::t('No installed applications.') . EOL); + } + + $tpl = Renderer::getMarkupTemplate('apps.tpl'); + return Renderer::replaceMacros($tpl, [ + '$title' => $title, + '$apps' => $apps, + ]); }