From: Niklas Laxström Date: Mon, 14 Apr 2008 07:14:27 +0000 (+0000) Subject: * Tweak balancing X-Git-Tag: 1.31.0-rc.0~48348 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=8847d4527a988fd8968974dde809ee11f53c3d9d;p=lhc%2Fweb%2Fwiklou.git * Tweak balancing --- diff --git a/includes/SpecialSpecialpages.php b/includes/SpecialSpecialpages.php index 90ff0ed2fd..4a8007fee3 100644 --- a/includes/SpecialSpecialpages.php +++ b/includes/SpecialSpecialpages.php @@ -66,7 +66,7 @@ function wfSpecialSpecialpages_gen($pages,$heading,$sk) { $wgOut->addHTML( '

' . wfMsgHtml( $heading ) . "

\n" ); foreach ( $groups as $group => $sortedPages ) { $middle = ceil( count($sortedPages)/2 ); - $max = count($sortedPages) - 1; + $total = count($sortedPages); $count = 0; $wgOut->addHTML( "

".wfMsgHtml("specialpages-group-$group")."

\n" ); @@ -78,7 +78,7 @@ function wfSpecialSpecialpages_gen($pages,$heading,$sk) { # Slit up the larger groups $count++; - if( $max > 3 && $count == $middle && $count < $max ) { + if( $total > 3 && $count == $middle ) { $wgOut->addHTML( "