From: Mikael Nordfeldth Date: Mon, 5 May 2014 20:49:34 +0000 (+0200) Subject: Cleaning up FavorAction X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7028c16d1c89c8e444b1958b1aabfb8af78c646b;p=quix0rs-gnu-social.git Cleaning up FavorAction --- diff --git a/actions/favor.php b/actions/favor.php index 1ce0eb8947..8c19f9da5c 100644 --- a/actions/favor.php +++ b/actions/favor.php @@ -46,16 +46,7 @@ require_once INSTALLDIR.'/lib/mail.php'; */ class FavorAction extends FormAction { - // We overload this because success should redirect - public function showForm($msg=null, $success=false) - { - if ($success) { - common_redirect(common_local_url('showfavorites', - array('nickname' => $user->nickname)), 303); - } - - parent::showForm($msg, $success); - } + protected $needPost = true; protected function handlePost() {