aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-08-31 16:17:32 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-08-31 16:17:32 +0200
commit71d44d78ec5b16a53b82f4e631b86cd8247a9b0f (patch)
tree7f95a84dd6cf8402b20ff46eff6464e1bd0b9a5b /mod
parentd0926240a87327a7e38b822802ac192336f68791 (diff)
downloadvolse-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.php19
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,
+ ));
+
+
+
+}