forked from GNUsocial/gnu-social
		
	Cleaning up FavorAction
This commit is contained in:
		@@ -46,16 +46,7 @@ require_once INSTALLDIR.'/lib/mail.php';
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
class FavorAction extends FormAction
 | 
					class FavorAction extends FormAction
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    // We overload this because success should redirect
 | 
					    protected $needPost = true;
 | 
				
			||||||
    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 function handlePost()
 | 
					    protected function handlePost()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user