aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/appman.php8
-rw-r--r--mod/apps.php2
2 files changed, 6 insertions, 4 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']),
diff --git a/mod/apps.php b/mod/apps.php
index 34bbc7142..e88c54c66 100644
--- a/mod/apps.php
+++ b/mod/apps.php
@@ -28,8 +28,6 @@ function apps_content(&$a) {
$list = app_list(local_user());
if($list) {
foreach($list as $app) {
- if($mode == 'edit')
- $app['alt_url'] = z_root() . '/appman/?f=&appid=' . $app['app_id'];
$apps[] = app_render(app_encode($app),$mode);
}
}