mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
Installed apps as array instead of string
This commit is contained in:
parent
d0926240a8
commit
71d44d78ec
7 changed files with 23 additions and 13 deletions
19
mod/apps.php
19
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;
|
||||
|
||||
}
|
||||
$tpl = get_markup_template("apps.tpl");
|
||||
return replace_macros($tpl, array(
|
||||
'$title' => $title,
|
||||
'$apps' => $a->apps,
|
||||
));
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue