Index: trunk/extensions/LocalisationUpdate/LocalisationUpdate.class.php |
— | — | @@ -208,7 +208,8 @@ |
209 | 209 | } |
210 | 210 | |
211 | 211 | // Get the array with messages |
212 | | - $vars = new ConfEditor( $basefilecontents )->getVars(); |
| 212 | + $fileEditor = new ConfEditor( $basefilecontents ); |
| 213 | + $vars = $fileEditor->getVars(); |
213 | 214 | $base_messages = $vars['base_messages']; |
214 | 215 | |
215 | 216 | $comparefilecontents = self::getFileContents( $comparefile ); |
— | — | @@ -229,7 +230,8 @@ |
230 | 231 | } |
231 | 232 | } |
232 | 233 | // Get the array |
233 | | - $vars = new ConfEditor( $comparefilecontents )->getVars(); |
| 234 | + $fileEditor = new ConfEditor( $comparefilecontents ); |
| 235 | + $vars = $fileEditor->getVars(); |
234 | 236 | $compare_messages = $vars['compare_messages']; |
235 | 237 | |
236 | 238 | // if the localfile and the remote file are the same, skip them! |
— | — | @@ -375,7 +377,8 @@ |
376 | 378 | } |
377 | 379 | |
378 | 380 | // And get the real contents |
379 | | - $vars = new ConfEditor( $basefilecontents )->getVars(); |
| 381 | + $fileEditor = new ConfEditor( $basefilecontents ); |
| 382 | + $vars = $fileEditor->getVars(); |
380 | 383 | $base_messages = $vars['base_messages']; |
381 | 384 | |
382 | 385 | $comparefilecontents = self::getFileContents( $comparefile ); |
— | — | @@ -395,7 +398,8 @@ |
396 | 399 | } |
397 | 400 | } |
398 | 401 | // Get the real array |
399 | | - $vars = new ConfEditor( $comparefilecontents )->getVars(); |
| 402 | + $fileEditor = new ConfEditor( $comparefilecontents ); |
| 403 | + $vars = $fileEditor->getVars(); |
400 | 404 | $compare_messages = $vars['compare_messages']; |
401 | 405 | |
402 | 406 | // If both files are the same, they can be skipped |