Index: trunk/extensions/Translate/scripts/poimport.php |
— | — | @@ -169,10 +169,9 @@ |
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
173 | | - * Import changes to MediaWiki namespace as given user |
| 173 | + * Import changes to wiki as given user |
174 | 174 | */ |
175 | 175 | class WikiWriter { |
176 | | - |
177 | 176 | private $changes = array(); |
178 | 177 | private $dryrun = true; |
179 | 178 | private $allclear = false; |
— | — | @@ -199,7 +198,6 @@ |
200 | 199 | } |
201 | 200 | |
202 | 201 | $this->allclear = true; |
203 | | - |
204 | 202 | } |
205 | 203 | |
206 | 204 | /** |
— | — | @@ -213,12 +211,11 @@ |
214 | 212 | $count = count( $this->changes ); |
215 | 213 | STDOUT( "Going to update $count pages." ); |
216 | 214 | |
217 | | - $ns = $this->group->namespaces[0]; |
| 215 | + $ns = $this->group->getNamespace(); |
218 | 216 | |
219 | 217 | foreach ( $this->changes as $title => $text ) { |
220 | 218 | $this->updateMessage( $ns, $title, $text ); |
221 | 219 | } |
222 | | - |
223 | 220 | } |
224 | 221 | |
225 | 222 | /** |