some backend stuff for apps

This commit is contained in:
friendica
2014-05-15 16:43:42 -07:00
parent 8b233723c5
commit e68bb132a7
4 changed files with 78 additions and 10 deletions

View File

@@ -1,17 +1,21 @@
<?php
require_once('include/apps.php');
function apps_content(&$a) {
$apps = $a->get_apps();
if(count($apps) == 0)
notice( t('No installed applications.') . EOL);
$tpl = get_markup_template("apps.tpl");
return replace_macros($tpl, array(
'$title' => t('Applications'),
'$apps' => $apps,
));
$apps = get_system_apps();
$o .= print_r($apps,true);
return $o;
// $tpl = get_markup_template("apps.tpl");
// return replace_macros($tpl, array(
// '$title' => t('Applications'),
// '$apps' => $apps,
// ));
}