diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-21 14:56:02 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-21 14:56:02 -0400 |
commit | b791a835929c659d8dcf174553f7786fb45cf978 (patch) | |
tree | 7000715f987b456d401791898b615bb4f3b97c8d /actions/subscribe.php | |
parent | 5172a73e28eb2150967f466341ac1e0f7725d896 (diff) |
fix subscriptions a bit
darcs-hash:20080521185602-84dde-9e058c34c251d96cf557c1dd459523aa434bed79.gz
Diffstat (limited to 'actions/subscribe.php')
-rw-r--r-- | actions/subscribe.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/actions/subscribe.php b/actions/subscribe.php index 1ca57a43b..522c31593 100644 --- a/actions/subscribe.php +++ b/actions/subscribe.php @@ -50,20 +50,12 @@ class SubscribeAction extends Action { $sub->created = DB_DataObject_Cast::dateTime(); # current time - $val = $sub->validate(); - - if ($val !== TRUE) { - # XXX: give some error notice - common_server_error(_t('Subscription did not validate.')); - return; - } - if (!$sub->insert()) { common_server_error(_t('Couldn\'t create subscription.')); return; } - common_redirect(common_local_url('all', array('nickname' => - $user->nickname))); + common_redirect(common_local_url('subscriptions', array('nickname' => + $user->nickname))); } }
\ No newline at end of file |