Platonides has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60383


Change subject: Fix case of $wgLocalTZoffset from 7e3386d4
......................................................................

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
---
M includes/Timestamp.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/83/60383/1

diff --git a/includes/Timestamp.php b/includes/Timestamp.php
index ba9b7b2..92e914e 100644
--- a/includes/Timestamp.php
+++ b/includes/Timestamp.php
@@ -213,7 +213,7 @@
         * @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 @@
                // 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

-- 
To view, visit https://gerrit.wikimedia.org/r/60383
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iddf9b363c9ddc95938ba8b5e0c134d9ec734109c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Platonides <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to