Installed apps as array instead of string

This commit is contained in:
Fabio Comuni 2011-08-31 16:17:32 +02:00
parent d0926240a8
commit 71d44d78ec
7 changed files with 23 additions and 13 deletions

View file

@ -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;
}
$tpl = get_markup_template("apps.tpl");
return replace_macros($tpl, array(
'$title' => $title,
'$apps' => $a->apps,
));
}