forked from GNUsocial/gnu-social
		
	use correct redirect on logout of single-user site
This commit is contained in:
		@@ -73,7 +73,13 @@ class LogoutAction extends Action
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            Event::handle('EndLogout', array($this));
 | 
					            Event::handle('EndLogout', array($this));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            common_redirect(common_local_url('public'), 303);
 | 
					            if (common_config('singleuser', 'enabled')) {
 | 
				
			||||||
 | 
					                $user = User::singleUser();
 | 
				
			||||||
 | 
					                common_redirect(common_local_url('showstream',
 | 
				
			||||||
 | 
					                                                 array('nickname' => $user->nickname)));
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                common_redirect(common_local_url('public'), 303);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user