From 8847d4527a988fd8968974dde809ee11f53c3d9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 14 Apr 2008 07:14:27 +0000 Subject: [PATCH] * Tweak balancing --- includes/SpecialSpecialpages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( "