r42765 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42764‎ | r42765 | r42766 >
Date:12:37, 29 October 2008
Author:gri6507
Status:old
Tags:
Comment:
v1.11.2 - made the extension work with MW 1.7.x w.r.t usage of the getWeekdayAbbreviation() method.
Modified paths:
  • /trunk/extensions/UsageStatistics/SpecialUserStats.php (modified) (history)
  • /trunk/extensions/UsageStatistics/SpecialUserStats_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsageStatistics/SpecialUserStats_body.php
@@ -432,7 +432,12 @@
433433 for($i = 1; $i <= 7; $i++)
434434 $daynames .= "'" . $wgContLang->getWeekdayName($i) . "',";
435435 for($i = 1; $i <= 7; $i++)
436 - $daynames .= "'" . $wgContLang->getWeekdayAbbreviation($i) . "',";
 436+ {
 437+ if (method_exists($wgContLang, 'getWeekdayAbbreviation'))
 438+ $daynames .= "'" . $wgContLang->getWeekdayAbbreviation($i) . "',";
 439+ else
 440+ $daynames .= "'" . $wgContLang->getWeekdayName($i) . "',";
 441+ }
437442 $daynames = substr($daynames, 0, -1);
438443
439444
Index: trunk/extensions/UsageStatistics/SpecialUserStats.php
@@ -13,7 +13,7 @@
1414
1515 $wgExtensionCredits['specialpage'][] = array(
1616 'name' => 'UserStats',
17 - 'version' => 'v1.11.1',
 17+ 'version' => 'v1.11.2',
1818 'author' => 'Paul Grinberg',
1919 'email' => 'gri6507 at yahoo dot com',
2020 'url' => 'http://www.mediawiki.org/wiki/Extension:Usage_Statistics',

Status & tagging log