r46097 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46096‎ | r46097 | r46098 >
Date:20:13, 23 January 2009
Author:ialex
Status:ok
Tags:
Comment:
* Fix E_STRICT
* Fix doxygen warnings
Modified paths:
  • /trunk/phase3/includes/parser/DateFormatter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/DateFormatter.php
@@ -96,9 +96,11 @@
9797 }
9898
9999 /**
100 - * @static
 100+ * Get a DateFormatter object
 101+ *
 102+ * @return DateFormatter object
101103 */
102 - function &getInstance() {
 104+ public static function &getInstance() {
103105 global $wgMemc;
104106 static $dateFormatter = false;
105107 if ( !$dateFormatter ) {
@@ -112,8 +114,8 @@
113115 }
114116
115117 /**
116 - * @param string $preference User preference
117 - * @param string $text Text to reformat
 118+ * @param $preference String: User preference
 119+ * @param $text String: Text to reformat
118120 */
119121 function reformat( $preference, $text ) {
120122 if ( isset( $this->preferences[$preference] ) ) {

Status & tagging log