From: Jens Frank Date: Fri, 31 Dec 2004 15:01:20 +0000 (+0000) Subject: BUG#1241 Don't show 'cont.' for first entry of the category list X-Git-Tag: 1.5.0alpha1~1005 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=57d67e57347c1e94f0e5cd0cf722d5cfece55492;p=lhc%2Fweb%2Fwiklou.git BUG#1241 Don't show 'cont.' for first entry of the category list --- 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