summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/scripts/poimport.php')
-rw-r--r--MLEB/Translate/scripts/poimport.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/MLEB/Translate/scripts/poimport.php b/MLEB/Translate/scripts/poimport.php
index 4c411270..c7b009b7 100644
--- a/MLEB/Translate/scripts/poimport.php
+++ b/MLEB/Translate/scripts/poimport.php
@@ -302,12 +302,11 @@ class WikiWriter {
$page = WikiPage::factory( $title );
$content = ContentHandler::makeContent( $text, $title );
- $status = $page->doEditContent(
+ $status = TranslateUtils::doPageEdit(
+ $page,
$content,
- 'Updating translation from gettext import',
- 0,
- false,
- $this->user
+ $this->user,
+ 'Updating translation from gettext import'
);
if ( $status === true || ( is_object( $status ) && $status->isOK() ) ) {