X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fapps.php;h=a220afff1cadcad109d520239030bea47c33e7e2;hb=5db1717f4632a33da34e08b916816d7cba0e1878;hp=1d08d2e7f6954a2ea532f52578164cbeba99218a;hpb=af0fe4cf422aee9a8fd6b5b5cd422ed0c02e6696;p=friendica.git diff --git a/mod/apps.php b/mod/apps.php index 1d08d2e7f6..a220afff1c 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -1,14 +1,26 @@ ' . t('Applications') . ''; + $title = t('Applications'); - if($a->apps) - $o .= $a->apps; + if (count($a->apps) == 0) { + notice(t('No installed applications.') . EOL); + } - - return $o; - -} \ No newline at end of file + $tpl = get_markup_template('apps.tpl'); + return replace_macros($tpl, [ + '$title' => $title, + '$apps' => $a->apps, + ]); +}