summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/specials/SpecialImportTranslations.php')
-rw-r--r--MLEB/Translate/specials/SpecialImportTranslations.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/MLEB/Translate/specials/SpecialImportTranslations.php b/MLEB/Translate/specials/SpecialImportTranslations.php
index eea01221..a3b472d0 100644
--- a/MLEB/Translate/specials/SpecialImportTranslations.php
+++ b/MLEB/Translate/specials/SpecialImportTranslations.php
@@ -41,8 +41,6 @@ class SpecialImportTranslations extends SpecialPage {
// Security and validity checks
if ( !$this->userCanExecute( $this->getUser() ) ) {
$this->displayRestrictionError();
-
- return;
}
if ( !$this->getRequest()->wasPosted() ) {
@@ -98,6 +96,7 @@ class SpecialImportTranslations extends SpecialPage {
}
$importer = new MessageWebImporter( $this->getPageTitle(), $group, $code );
+ $importer->setUser( $this->getUser() );
$alldone = $importer->execute( $messages );
if ( $alldone ) {