aboutsummaryrefslogtreecommitdiffstats
path: root/mod/appman.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-21 20:54:09 -0700
committerfriendica <info@friendica.com>2014-05-21 20:54:09 -0700
commit751fda97045ad4e399e9a01cc14d8eb058b361a8 (patch)
tree02f0066e82d006fa9959e7742d520bebf6f25e89 /mod/appman.php
parente9b006a5eba1672258568ece39499d2488bd95eb (diff)
downloadvolse-hubzilla-751fda97045ad4e399e9a01cc14d8eb058b361a8.tar.gz
volse-hubzilla-751fda97045ad4e399e9a01cc14d8eb058b361a8.tar.bz2
volse-hubzilla-751fda97045ad4e399e9a01cc14d8eb058b361a8.zip
more app work
Diffstat (limited to 'mod/appman.php')
-rw-r--r--mod/appman.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/appman.php b/mod/appman.php
index 6d5127b51..15f27676c 100644
--- a/mod/appman.php
+++ b/mod/appman.php
@@ -44,6 +44,10 @@ function appman_post(&$a) {
app_destroy(local_user(),$papp);
}
+ if($_POST['edit']) {
+ return;
+ }
+
if($_SESSION['return_url'])
goaway(z_root() . '/' . $_SESSION['return_url']);
goaway(z_root() . '/apps/personal');
@@ -58,7 +62,7 @@ function appman_content(&$a) {
notice( t('Permission denied.') . EOL);
return;
}
-
+logger('content');
$channel = $a->get_channel();
$app = null;
$embed = null;
@@ -75,7 +79,7 @@ function appman_content(&$a) {
return replace_macros(get_markup_template('app_create.tpl'), array(
- '$banner' => t('Create App'),
+ '$banner' => (($app) ? t('Edit App') : t('Create App')),
'$app' => $app,
'$guid' => (($app) ? $app['app_id'] : ''),
'$author' => (($app) ? $app['app_author'] : $channel['channel_hash']),