r70051 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70050‎ | r70051 | r70052 >
Date:22:07, 27 July 2010
Author:platonides
Status:deferred
Tags:
Comment:
if $old === false, the $wgLang of line 263 would not be the global.
Modified paths:
  • /trunk/extensions/Translate/utils/MessageWebImporter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/MessageWebImporter.php
@@ -115,7 +115,7 @@
116116 }
117117
118118 public function execute( $messages ) {
119 - global $wgOut;
 119+ global $wgOut, $wgLang;
120120
121121 $this->out = $wgOut;
122122
@@ -162,7 +162,7 @@
163163 $text = $diff->getDiff( '', '' );
164164 $type = 'changed';
165165
166 - global $wgRequest, $wgLang;;
 166+ global $wgRequest;
167167
168168 # Spaces don't seem to survive round trip in addition to dots
169169 # which are silently handled in getVal

Status & tagging log