diff options
Diffstat (limited to 'MLEB/Translate/scripts/poimport.php')
-rw-r--r-- | MLEB/Translate/scripts/poimport.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/MLEB/Translate/scripts/poimport.php b/MLEB/Translate/scripts/poimport.php index cb057917..af7de0d5 100644 --- a/MLEB/Translate/scripts/poimport.php +++ b/MLEB/Translate/scripts/poimport.php @@ -21,7 +21,7 @@ require_once "$IP/maintenance/Maintenance.php"; class Poimport extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = 'Po file importer (does not make changes unless specified).'; + $this->addDescription( 'Po file importer (does not make changes unless specified).' ); $this->addOption( 'file', 'Gettext file to import (Translate specific formatting)', @@ -40,6 +40,7 @@ class Poimport extends Maintenance { false, /*required*/ false /*has arg*/ ); + $this->requireExtension( 'Translate' ); } public function execute() { @@ -74,7 +75,7 @@ class Poimport extends Maintenance { */ public function myOutput( $text, $channel = null, $error = false ) { if ( $error ) { - $this->error( $text, $channel ); + $this->error( $text ); } else { $this->output( $text, $channel ); } @@ -318,5 +319,5 @@ class WikiWriter { } } -$maintClass = 'Poimport'; +$maintClass = Poimport::class; require_once RUN_MAINTENANCE_IF_MAIN; |