Minor fixes, including overzealous replacement of app -> App
This commit is contained in:
parent
ce866ad39b
commit
70563e0324
3 changed files with 6 additions and 12 deletions
|
@ -5,8 +5,8 @@ use Friendica\App;
|
|||
function apps_content(App $a) {
|
||||
$privateaddons = get_config('config', 'private_addons');
|
||||
if ($privateaddons === "1") {
|
||||
if ((!(local_user()))) {
|
||||
info(t("You must be logged in to use addons. "));
|
||||
if (! local_user()) {
|
||||
info(t('You must be logged in to use addons. '));
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ function apps_content(App $a) {
|
|||
notice(t('No installed applications.') . EOL);
|
||||
}
|
||||
|
||||
$tpl = get_markup_template("apps.tpl");
|
||||
$tpl = get_markup_template('apps.tpl');
|
||||
return replace_macros($tpl, array(
|
||||
'$title' => $title,
|
||||
'$apps' => $a->apps,
|
||||
|
|
|
@ -11,7 +11,6 @@ function uexport_init(App $a) {
|
|||
settings_init($a);
|
||||
}
|
||||
|
||||
/// @TODO Change space -> tab where wanted
|
||||
function uexport_content(App $a) {
|
||||
|
||||
if ($a->argc > 1) {
|
||||
|
@ -151,11 +150,6 @@ function uexport_all(App $a) {
|
|||
intval($x),
|
||||
intval(500)
|
||||
);
|
||||
/* if (dbm::is_result($r)) {
|
||||
foreach($r as $rr)
|
||||
foreach($rr as $k => $v)
|
||||
$item[][$k] = $v;
|
||||
} */
|
||||
|
||||
$output = array('item' => $r);
|
||||
echo json_encode($output) . "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue