From 57d67e57347c1e94f0e5cd0cf722d5cfece55492 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Fri, 31 Dec 2004 15:01:20 +0000 Subject: [PATCH] BUG#1241 Don't show 'cont.' for first entry of the category list --- includes/CategoryPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 169355fdab..a3e7a71439 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -225,7 +225,7 @@ class CategoryPage extends Article { // get and display header $r = ''; - $prev_start_char = ""; + $prev_start_char = 'none'; // loop through the chunks for($startChunk = 0, $endChunk = $chunk, $chunkIndex = 0; @@ -240,13 +240,13 @@ class CategoryPage extends Article { $index < $endChunk && $index < count($articles); $index++ ) { - // check for change of starting letter or begging of chunk + // check for change of starting letter or begining of chunk if ( ($index == $startChunk) || ($articles_start_char[$index] != $articles_start_char[$index - 1]) ) { $cont_msg = ""; - if($articles_start_char[$index] == $prev_start_char) + if ( $articles_start_char[$index] == $prev_start_char ) $cont_msg = wfMsg('listingcontinuesabbrev'); $r .= "

{$articles_start_char[$index]}$cont_msg

\n