Index: trunk/phase3/includes/parser/DateFormatter.php |
— | — | @@ -96,9 +96,11 @@ |
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
100 | | - * @static |
| 100 | + * Get a DateFormatter object |
| 101 | + * |
| 102 | + * @return DateFormatter object |
101 | 103 | */ |
102 | | - function &getInstance() { |
| 104 | + public static function &getInstance() { |
103 | 105 | global $wgMemc; |
104 | 106 | static $dateFormatter = false; |
105 | 107 | if ( !$dateFormatter ) { |
— | — | @@ -112,8 +114,8 @@ |
113 | 115 | } |
114 | 116 | |
115 | 117 | /** |
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 |
118 | 120 | */ |
119 | 121 | function reformat( $preference, $text ) { |
120 | 122 | if ( isset( $this->preferences[$preference] ) ) { |