r69582 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69581‎ | r69582 | r69583 >
Date:07:00, 20 July 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed issue with PHP 5.3 strict standards
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php
@@ -242,7 +242,7 @@
243243 // and years (same - note that the previous or next month could
244244 // be in a different year), the number of days in the current,
245245 // previous and next months, etc.
246 - $cur_month_num = date( "n", mktime() );
 246+ $cur_month_num = date( "n", time() );
247247 if ( $wgRequest->getCheck( 'month' ) ) {
248248 $query_month = $wgRequest->getVal( 'month' );
249249 if ( is_numeric( $query_month ) && ( intval( $query_month ) == $query_month ) && $query_month >= 1 && $query_month <= 12 ) {
@@ -250,7 +250,7 @@
251251 }
252252 }
253253 $cur_month = SRFCalendar::intToMonth( $cur_month_num );
254 - $cur_year = date( "Y", mktime() );
 254+ $cur_year = date( "Y", time() );
255255 if ( $wgRequest->getCheck( 'year' ) ) {
256256 $query_year = $wgRequest->getVal( 'year' );
257257 if ( is_numeric( $query_year ) && intval( $query_year ) == $query_year ) {
@@ -290,7 +290,7 @@
291291 $start_day = 1 - $day_of_week_of_1;
292292 $days_in_prev_month = SRFCHistoricalDate::daysInMonth( $prev_year, $prev_month_num );
293293 $days_in_cur_month = SRFCHistoricalDate::daysInMonth( $cur_year, $cur_month_num );
294 - $today_string = date( "Y n j", mktime() );
 294+ $today_string = date( "Y n j", time() );
295295 $url_year = $wgRequest->getVal( 'year' );
296296 $page_name = $page_title->getPrefixedDbKey();
297297

Status & tagging log