summaryrefslogtreecommitdiff
path: root/actions/newapplication.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-13 07:33:51 +0000
committerZach Copley <zach@status.net>2010-01-24 16:36:04 -0800
commite101a6df6ba1cbec4664bb81fc81655e5db18b0f (patch)
tree1d807b1fd443b2e0e08868cfb4cf11ad57f78906 /actions/newapplication.php
parent693b16174ad4142d1a543f78878c84c552ce6d74 (diff)
Rework application registration workflow to be more private
Diffstat (limited to 'actions/newapplication.php')
-rw-r--r--actions/newapplication.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/actions/newapplication.php b/actions/newapplication.php
index 7bb81095d..c499fe7c7 100644
--- a/actions/newapplication.php
+++ b/actions/newapplication.php
@@ -114,8 +114,7 @@ class NewApplicationAction extends OwnerDesignAction
$cur = common_current_user();
if ($this->arg('cancel')) {
- common_redirect(common_local_url('apps',
- array('nickname' => $cur->nickname)), 303);
+ common_redirect(common_local_url('oauthappssettings'), 303);
} elseif ($this->arg('save')) {
$this->trySave();
} else {
@@ -147,7 +146,7 @@ class NewApplicationAction extends OwnerDesignAction
function trySave()
{
- $name = $this->trimmed('name');
+ $name = $this->trimmed('name');
$description = $this->trimmed('description');
$source_url = $this->trimmed('source_url');
$organization = $this->trimmed('organization');
@@ -270,8 +269,7 @@ class NewApplicationAction extends OwnerDesignAction
$app->query('COMMIT');
- common_redirect(common_local_url('apps',
- array('nickname' => $cur->nickname)), 303);
+ common_redirect(common_local_url('oauthappssettings'), 303);
}