diff options
author | Zach Copley <zach@status.net> | 2010-01-13 07:33:51 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-01-14 02:41:09 +0000 |
commit | 7c34ac8cc2c3813f05deb8ac80e511648b441914 (patch) | |
tree | c53ec0b5bf90387e476e2e08789c68a99fdd7683 /actions/newapplication.php | |
parent | 22809baf94118ea7c0a41db4ac511277fc942a41 (diff) |
Rework application registration workflow to be more private
Diffstat (limited to 'actions/newapplication.php')
-rw-r--r-- | actions/newapplication.php | 8 |
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); } |