Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x

This commit is contained in:
CiaranG 2009-03-08 01:11:22 +00:00
commit 61940e37ff
4 changed files with 7 additions and 5 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;
}

View File

@ -164,8 +164,10 @@ class GroupList extends Widget
# XXX: special-case for user looking at own
# subscriptions page
if ($user->isMember($this->group)) {
$lf = new LeaveForm($this->out, $this->group);
$lf->show();
if (!$user->isAdmin($this->group)) {
$lf = new LeaveForm($this->out, $this->group);
$lf->show();
}
} else {
$jf = new JoinForm($this->out, $this->group);
$jf->show();