From: Niklas Laxström Date: Mon, 16 May 2011 09:59:23 +0000 (+0000) Subject: Follow-up r88190: coding style X-Git-Tag: 1.31.0-rc.0~30135 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=3420922b8c5fc3be1d57bc60523b3a3db199e02d;p=lhc%2Fweb%2Fwiklou.git Follow-up r88190: coding style --- diff --git a/includes/Preferences.php b/includes/Preferences.php index 617f3c1137..2723f75010 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -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 ); }