r6892 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r6891‎ | r6892 | r6893 >
Date:15:11, 31 December 2004
Author:jeluf
Status:old
Tags:
Comment:
Don't show 'cont.' for first entry of the category list
Modified paths:
  • /branches/REL1_4/phase3/RELEASE-NOTES (modified) (history)
  • /branches/REL1_4/phase3/includes/CategoryPage.php (modified) (history)

Diff [purge]

Index: branches/REL1_4/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];
Index: branches/REL1_4/phase3/RELEASE-NOTES
@@ -183,6 +183,7 @@
184184 * Added magic word MAG_NOTITLECONVERT to indicate that the title of the page
185185 do not need to be converted. Useful in zh:
186186 * (bug 1224) Use proper date messages for date reformatter
 187+* (bug 1241) Don't show 'cont.' for first entry of the category list
187188
188189 === Caveats ===
189190

Status & tagging log