diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-02-22 11:22:43 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-02-22 11:22:43 +0100 |
commit | 55924f5c5b147412fda350a3b7c2ecfaef523e19 (patch) | |
tree | 3a9cb46ff8b67b627a6c0ae7cc693b0d21952076 /Zotlabs/Module | |
parent | 956f0043fc73c290d9154ab06337b995ddfd1a1c (diff) | |
download | volse-hubzilla-55924f5c5b147412fda350a3b7c2ecfaef523e19.tar.gz volse-hubzilla-55924f5c5b147412fda350a3b7c2ecfaef523e19.tar.bz2 volse-hubzilla-55924f5c5b147412fda350a3b7c2ecfaef523e19.zip |
apps improvements
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Appman.php | 5 | ||||
-rw-r--r-- | Zotlabs/Module/Apps.php | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Zotlabs/Module/Appman.php b/Zotlabs/Module/Appman.php index 270301d34..70cc7e44b 100644 --- a/Zotlabs/Module/Appman.php +++ b/Zotlabs/Module/Appman.php @@ -36,8 +36,9 @@ class Appman extends \Zotlabs\Web\Controller { if(Zlib\Apps::app_installed(local_channel(),$arr)) info( t('App installed.') . EOL); - - return; + + goaway(z_root() . '/apps'); + return; //not reached } diff --git a/Zotlabs/Module/Apps.php b/Zotlabs/Module/Apps.php index 2df6d675f..261615997 100644 --- a/Zotlabs/Module/Apps.php +++ b/Zotlabs/Module/Apps.php @@ -41,9 +41,12 @@ class Apps extends \Zotlabs\Web\Controller { return replace_macros(get_markup_template('myapps.tpl'), array( '$sitename' => get_config('system','sitename'), - '$cat' => ((array_key_exists('cat',$_GET) && $_GET['cat']) ? ' - ' . escape_tags($_GET['cat']) : ''), + '$cat' => ((array_key_exists('cat',$_GET) && $_GET['cat']) ? escape_tags($_GET['cat']) : ''), '$title' => t('Apps'), '$apps' => $apps, + '$authed' => ((local_channel()) ? true : false), + '$manage' => t('Manage apps'), + '$create' => (($mode == 'edit') ? t('Create new app') : '') )); } |