diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-08-31 16:17:32 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-08-31 16:17:32 +0200 |
commit | 71d44d78ec5b16a53b82f4e631b86cd8247a9b0f (patch) | |
tree | 7f95a84dd6cf8402b20ff46eff6464e1bd0b9a5b /mod | |
parent | d0926240a87327a7e38b822802ac192336f68791 (diff) | |
download | volse-hubzilla-71d44d78ec5b16a53b82f4e631b86cd8247a9b0f.tar.gz volse-hubzilla-71d44d78ec5b16a53b82f4e631b86cd8247a9b0f.tar.bz2 volse-hubzilla-71d44d78ec5b16a53b82f4e631b86cd8247a9b0f.zip |
Installed apps as array instead of string
Diffstat (limited to 'mod')
-rw-r--r-- | mod/apps.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/mod/apps.php b/mod/apps.php index 7a0a3f59e..8049b45fb 100644 --- a/mod/apps.php +++ b/mod/apps.php @@ -1,15 +1,18 @@ <?php - function apps_content(&$a) { + $title = t('Applications'); - $o .= '<h3>' . t('Applications') . '</h3>'; - - if($a->apps) - $o .= $a->apps; - else + 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, array( + '$title' => $title, + '$apps' => $a->apps, + )); + + + +} |