]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Cleaning up FavorAction
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 5 May 2014 20:49:34 +0000 (22:49 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 5 May 2014 20:49:34 +0000 (22:49 +0200)
actions/favor.php

index 1ce0eb89471074c16e1af716f26dd66075483db5..8c19f9da5c6a29c9327b334ccaf159ae0450c74e 100644 (file)
@@ -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()
     {