X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fapps.php;h=d497ce93a2812c6695dbc160bd491c8734562c65;hb=0dc06d66a0f4bc68529fe693b919d0a72ea57a28;hp=1d08d2e7f6954a2ea532f52578164cbeba99218a;hpb=af0fe4cf422aee9a8fd6b5b5cd422ed0c02e6696;p=friendica.git diff --git a/mod/apps.php b/mod/apps.php index 1d08d2e7f6..d497ce93a2 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -1,14 +1,33 @@ ' . t('Applications') . ''; + $apps = Nav::getAppMenu(); - if($a->apps) - $o .= $a->apps; + if (count($apps) == 0) { + notice(L10n::t('No installed applications.') . EOL); + } - - return $o; - -} \ No newline at end of file + $tpl = Renderer::getMarkupTemplate('apps.tpl'); + return Renderer::replaceMacros($tpl, [ + '$title' => $title, + '$apps' => $apps, + ]); +}