Follow-up r88190: coding style
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 16 May 2011 09:59:23 +0000 (09:59 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 16 May 2011 09:59:23 +0000 (09:59 +0000)
includes/Preferences.php

index 617f3c1..2723f75 100644 (file)
@@ -1182,10 +1182,9 @@ class Preferences {
 
                global $wgLocalTZoffset, $wgLocaltimezone;
                // Check that $wgLocalTZoffset is the same as $wgLocaltimezone
-               if ( $wgLocalTZoffset == date('Z') / 60 ) {
+               if ( $wgLocalTZoffset == date( 'Z' ) / 60 ) {
                        $server_tz_msg = wfMsg( 'timezoneuseserverdefault', $wgLocaltimezone );
-               }
-               else {
+               } else {
                        $tzstring = sprintf( '%+03d:%02d', floor( $wgLocalTZoffset / 60 ), abs( $wgLocalTZoffset ) % 60 );
                        $server_tz_msg = wfMsg( 'timezoneuseserverdefault', $tzstring );
                }