Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php |
— | — | @@ -200,7 +200,7 @@ |
201 | 201 | } |
202 | 202 | } |
203 | 203 | |
204 | | - function intToMonth( $int ) { |
| 204 | + protected static function intToMonth( $int ) { |
205 | 205 | $months = array( |
206 | 206 | '1' => 'january', |
207 | 207 | '2' => 'february', |
— | — | @@ -216,7 +216,7 @@ |
217 | 217 | '12' => 'december', |
218 | 218 | ); |
219 | 219 | |
220 | | - return wfMsg( array_key_exists( $int, $months ) ? $months[$int] : 'january' ); |
| 220 | + return wfMsgForContent( array_key_exists( $int, $months ) ? $months[$int] : 'january' ); |
221 | 221 | } |
222 | 222 | |
223 | 223 | function formatDateStr( $object ) { |
— | — | @@ -291,7 +291,7 @@ |
292 | 292 | } |
293 | 293 | } |
294 | 294 | |
295 | | - $cur_month = SRFCalendar::intToMonth( $cur_month_num ); |
| 295 | + $cur_month = self::intToMonth( $cur_month_num ); |
296 | 296 | $cur_year = date( 'Y', time() ); |
297 | 297 | if ( $wgRequest->getCheck( 'year' ) ) { |
298 | 298 | $query_year = $wgRequest->getVal( 'year' ); |
— | — | @@ -360,7 +360,7 @@ |
361 | 361 | |
362 | 362 | END; |
363 | 363 | for ( $i = 1; $i <= 12; $i++ ) { |
364 | | - $month_name = SRFCalendar::intToMonth( $i ); |
| 364 | + $month_name = self::intToMonth( $i ); |
365 | 365 | $selected_str = ( $i == $cur_month_num ) ? "selected" : ""; |
366 | 366 | $text .= "<option value=\"$i\" $selected_str>$month_name</option>\n"; |
367 | 367 | } |