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