r7843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r7842‎ | r7843 | r7844 >
Date:05:00, 24 March 2005
Author:avar
Status:old
Tags:
Comment:
* Implemented date()
Modified paths:
  • /branches/REL1_4/phase3/languages/LanguageIs.php (modified) (history)

Diff [purge]

Index: branches/REL1_4/phase3/languages/LanguageIs.php
@@ -1197,6 +1197,13 @@
11981198 global $wgMagicWordsIs;
11991199 return $wgMagicWordsIs;
12001200 }
 1201+
 1202+ function date( $ts, $adj = false ) {
 1203+ if ( $adj ) { $ts = $this->userAdjust( $ts ); } # Adjust based on the timezone setting.
 1204+ $date = (0 + substr( $ts, 6, 2 )) . '. ' . $this->getMonthName( substr( $ts, 4, 2 ) );
 1205+ return $date;
 1206+ }
 1207+
12011208 }
12021209
12031210 ?>

Status & tagging log