From: Platonides Date: Tue, 23 Apr 2013 11:20:01 +0000 (+0200) Subject: Fix case of $wgLocalTZoffset from 7e3386d4 X-Git-Tag: 1.31.0-rc.0~19858^2~1 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=e30a27945effab2ecb52c93699a81ebc64682f1b;p=lhc%2Fweb%2Fwiklou.git Fix case of $wgLocalTZoffset from 7e3386d4 The variable is called $wgLocalTZoffset, with lowercase O. And php variable names are case-sensitive. This commit is a simple sed -i 's/wgLocalTZOffset/wgLocalTZoffset/' includes/Timestamp.php Change-Id: Iddf9b363c9ddc95938ba8b5e0c134d9ec734109c --- diff --git a/includes/Timestamp.php b/includes/Timestamp.php index ba9b7b283c..92e914e4b2 100644 --- a/includes/Timestamp.php +++ b/includes/Timestamp.php @@ -213,7 +213,7 @@ class MWTimestamp { * @return DateInterval Offset that was applied to the timestamp */ public function offsetForUser( User $user ) { - global $wgLocalTZOffset; + global $wgLocalTZoffset; $option = $user->getOption( 'timecorrection' ); $data = explode( '|', $option, 3 ); @@ -239,8 +239,8 @@ class MWTimestamp { // first value. if ( $data[0] == 'System' ) { // First value is System, so use the system offset. - if ( isset( $wgLocalTZOffset ) ) { - $diff = $wgLocalTZOffset; + if ( isset( $wgLocalTZoffset ) ) { + $diff = $wgLocalTZoffset; } } elseif ( $data[0] == 'Offset' ) { // First value is Offset, so use the specified offset