Corrected redirect targets for some group actions. These redirects can occur when the canonical name differs from the passed name.

This commit is contained in:
Adrian Lang 2009-03-08 01:30:11 +01:00
parent 60f737dc1e
commit f8d1381717
3 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class GrouplogoAction extends Action
if ($nickname_arg != $nickname) {
$args = array('nickname' => $nickname);
common_redirect(common_local_url('editgroup', $args), 301);
common_redirect(common_local_url('grouplogo', $args), 301);
return false;
}

View File

@ -73,7 +73,7 @@ class JoingroupAction extends Action
if ($nickname_arg != $nickname) {
$args = array('nickname' => $nickname);
common_redirect(common_local_url('editgroup', $args), 301);
common_redirect(common_local_url('joingroup', $args), 301);
return false;
}

View File

@ -73,7 +73,7 @@ class LeavegroupAction extends Action
if ($nickname_arg != $nickname) {
$args = array('nickname' => $nickname);
common_redirect(common_local_url('editgroup', $args), 301);
common_redirect(common_local_url('leavegroup', $args), 301);
return false;
}