r57090 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57089‎ | r57090 | r57091 >
Date:22:53, 29 September 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Fix broken namespace retrieval and update comment
Modified paths:
  • /trunk/extensions/Translate/scripts/poimport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/poimport.php
@@ -169,10 +169,9 @@
170170 }
171171
172172 /**
173 - * Import changes to MediaWiki namespace as given user
 173+ * Import changes to wiki as given user
174174 */
175175 class WikiWriter {
176 -
177176 private $changes = array();
178177 private $dryrun = true;
179178 private $allclear = false;
@@ -199,7 +198,6 @@
200199 }
201200
202201 $this->allclear = true;
203 -
204202 }
205203
206204 /**
@@ -213,12 +211,11 @@
214212 $count = count( $this->changes );
215213 STDOUT( "Going to update $count pages." );
216214
217 - $ns = $this->group->namespaces[0];
 215+ $ns = $this->group->getNamespace();
218216
219217 foreach ( $this->changes as $title => $text ) {
220218 $this->updateMessage( $ns, $title, $text );
221219 }
222 -
223220 }
224221
225222 /**

Status & tagging log