r50826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50825‎ | r50826 | r50827 >
Date:15:08, 20 May 2009
Author:shinjiman
Status:ok
Tags:
Comment:
follow up r50804, fix undefined variable error.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -1161,14 +1161,14 @@
11621162 if (($gy < 1989) || (($gy == 1989) && ($gm == 1) && ($gd < 8))) {
11631163 # Shōwa period
11641164 $gy_gannen = $gy - 1926 + 1;
1165 - $gy_offset = $gy_gannen + $gy_offset;
 1165+ $gy_offset = $gy_gannen;
11661166 if ($gy_gannen == 1)
11671167 $gy_offset = '元';
11681168 $gy_offset = '昭和'.$gy_offset;
11691169 } else {
11701170 # Heisei period
11711171 $gy_gannen = $gy - 1989 + 1;
1172 - $gy_offset = $gy_gannen + $gy_offset;
 1172+ $gy_offset = $gy_gannen;
11731173 if ($gy_gannen == 1)
11741174 $gy_offset = '元';
11751175 $gy_offset = '平成'.$gy_offset;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50804* (bug 18849) Added Japanese and North Korean calendars supportshinjiman01:53, 20 May 2009

Status & tagging log