From: Andrew Garrett Date: Wed, 2 Apr 2008 00:27:30 +0000 (+0000) Subject: Remove 8-group limit for putting Userrights options in columns - so they will always... X-Git-Tag: 1.31.0-rc.0~48688 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=ea0e4b9917673d4d35d76b6365522ebb4263abdc;p=lhc%2Fweb%2Fwiklou.git Remove 8-group limit for putting Userrights options in columns - so they will always be in columns --- diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index 9842ae2f30..1118365412 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -402,13 +402,9 @@ class UserrightsPage extends SpecialPage { $allgroups = User::getAllGroups(); $ret = ''; - if (count($allgroups)>8) { - $column = 1; - $settable_col = ''; - $unsettable_col = ''; - } else { - $column = 0; - } + $column = 1; + $settable_col = ''; + $unsettable_col = ''; foreach ($allgroups as $group) { $set = in_array( $group, $usergroups ); @@ -421,14 +417,10 @@ class UserrightsPage extends SpecialPage { "wpGroup-$group", $set, $attr ); $checkbox = $disabled ? "$checkbox" : $checkbox; - if ($column) { - if ($disabled) { - $unsettable_col .= "$checkbox
\n"; - } else { - $settable_col .= "$checkbox
\n"; - } + if ($disabled) { + $unsettable_col .= "$checkbox
\n"; } else { - $ret .= " $checkbox "; + $settable_col .= "$checkbox
\n"; } }