From: CiaranG Date: Sun, 8 Mar 2009 01:11:22 +0000 (+0000) Subject: Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=61940e37ff89710628eff1a4ad6db8df16142cec;hp=a4091c878a923d7a0919098665906225ebeeb136;p=quix0rs-gnu-social.git Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x --- diff --git a/actions/grouplogo.php b/actions/grouplogo.php index 499db4ae8d..fe6127da29 100644 --- a/actions/grouplogo.php +++ b/actions/grouplogo.php @@ -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; } diff --git a/actions/joingroup.php b/actions/joingroup.php index 1888ecdab2..eeea4a37bf 100644 --- a/actions/joingroup.php +++ b/actions/joingroup.php @@ -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; } diff --git a/actions/leavegroup.php b/actions/leavegroup.php index c7152e3c0e..1d85aa3d52 100644 --- a/actions/leavegroup.php +++ b/actions/leavegroup.php @@ -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; } diff --git a/lib/grouplist.php b/lib/grouplist.php index 1b85474998..8e2637fec9 100644 --- a/lib/grouplist.php +++ b/lib/grouplist.php @@ -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();