From 6da6645192af14c7d18bfcd0233e232489021732 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 2 Oct 2010 21:58:04 +0000 Subject: [PATCH] And while I'm a it: * Fixed E_STRICT about different signature of TextPassDumper::dump() and BackupDumper::dump() * Add the possibility to show the help message... --- maintenance/dumpTextPass.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index ee2fbcc6d5..33413a0dd9 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -50,7 +50,7 @@ class TextPassDumper extends BackupDumper { var $spawnRead = false; var $spawnErr = false; - function dump() { + function dump( $history, $text = WikiExporter::TEXT ) { # This shouldn't happen if on console... ;) header( 'Content-type: text/html; charset=UTF-8' ); @@ -467,8 +467,8 @@ class TextPassDumper extends BackupDumper { $dumper = new TextPassDumper( $argv ); -if ( true ) { - $dumper->dump(); +if ( !isset( $options['help'] ) ) { + $dumper->dump( true ); } else { $dumper->progress( <<