r6891 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r6890‎ | r6891 | r6892 >
Date:15:01, 31 December 2004
Author:jeluf
Status:old
Tags:
Comment:
BUG#1241 Don't show 'cont.' for first entry of the category list
Modified paths:
  • /trunk/phase3/includes/CategoryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/CategoryPage.php
@@ -225,7 +225,7 @@
226226 // get and display header
227227 $r = '<table width="100%"><tr valign="top">';
228228
229 - $prev_start_char = "";
 229+ $prev_start_char = 'none';
230230
231231 // loop through the chunks
232232 for($startChunk = 0, $endChunk = $chunk, $chunkIndex = 0;
@@ -240,13 +240,13 @@
241241 $index < $endChunk && $index < count($articles);
242242 $index++ )
243243 {
244 - // check for change of starting letter or begging of chunk
 244+ // check for change of starting letter or begining of chunk
245245 if ( ($index == $startChunk) ||
246246 ($articles_start_char[$index] != $articles_start_char[$index - 1]) )
247247
248248 {
249249 $cont_msg = "";
250 - if($articles_start_char[$index] == $prev_start_char)
 250+ if ( $articles_start_char[$index] == $prev_start_char )
251251 $cont_msg = wfMsg('listingcontinuesabbrev');
252252 $r .= "</ul><h3>{$articles_start_char[$index]}$cont_msg</h3>\n<ul>";
253253 $prev_start_char = $articles_start_char[$index];

Status & tagging log