r12485 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12484‎ | r12485 | r12486 >
Date:22:33, 7 January 2006
Author:magnus_manske
Status:old
Tags:
Comment:
Fix for bug 2522
Modified paths:
  • /trunk/phase3/includes/MagicWord.php (modified) (history)
  • /trunk/phase3/includes/Parser.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -1954,6 +1954,8 @@
19551955 return $varCache[$index] = $wgContLang->getMonthAbbreviation( date( 'n', $ts ) );
19561956 case MAG_CURRENTDAY:
19571957 return $varCache[$index] = $wgContLang->formatNum( date( 'j', $ts ) );
 1958+ case MAG_CURRENTDAY2:
 1959+ return $varCache[$index] = $wgContLang->formatNum( date( 'd', $ts ) );
19581960 case MAG_PAGENAME:
19591961 return $this->mTitle->getText();
19601962 case MAG_PAGENAMEE:
Index: trunk/phase3/includes/MagicWord.php
@@ -21,6 +21,7 @@
2222 'MAG_CURRENTMONTHNAMEGEN',
2323 'MAG_CURRENTMONTHABBREV',
2424 'MAG_CURRENTDAY',
 25+ 'MAG_CURRENTDAY2',
2526 'MAG_CURRENTDAYNAME',
2627 'MAG_CURRENTYEAR',
2728 'MAG_CURRENTTIME',
@@ -81,6 +82,7 @@
8283 MAG_CURRENTMONTHNAMEGEN,
8384 MAG_CURRENTMONTHABBREV,
8485 MAG_CURRENTDAY,
 86+ MAG_CURRENTDAY2,
8587 MAG_CURRENTDAYNAME,
8688 MAG_CURRENTYEAR,
8789 MAG_CURRENTTIME,
Index: trunk/phase3/languages/Language.php
@@ -212,6 +212,7 @@
213213 MAG_CURRENTMONTHNAMEGEN => array( 1, 'CURRENTMONTHNAMEGEN' ),
214214 MAG_CURRENTMONTHABBREV => array( 1, 'CURRENTMONTHABBREV' ),
215215 MAG_CURRENTDAY => array( 1, 'CURRENTDAY' ),
 216+ MAG_CURRENTDAY2 => array( 1, 'CURRENTDAY2' ),
216217 MAG_CURRENTDAYNAME => array( 1, 'CURRENTDAYNAME' ),
217218 MAG_CURRENTYEAR => array( 1, 'CURRENTYEAR' ),
218219 MAG_CURRENTTIME => array( 1, 'CURRENTTIME' ),

Follow-up revisions

RevisionCommit summaryAuthorDate
r12518* (bug 2522) {{CURRENTDAY2}} now shows the current day number with two digitsmagnus_manske15:14, 8 January 2006

Status & tagging log