http://www.mediawiki.org/wiki/Special:Code/MediaWiki/74163

Revision: 74163
Author:   ialex
Date:     2010-10-02 21:58:04 +0000 (Sat, 02 Oct 2010)

Log Message:
-----------
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...

Modified Paths:
--------------
    trunk/phase3/maintenance/dumpTextPass.php

Modified: trunk/phase3/maintenance/dumpTextPass.php
===================================================================
--- trunk/phase3/maintenance/dumpTextPass.php   2010-10-02 21:56:39 UTC (rev 
74162)
+++ trunk/phase3/maintenance/dumpTextPass.php   2010-10-02 21:58:04 UTC (rev 
74163)
@@ -50,7 +50,7 @@
        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 @@
 
 $dumper = new TextPassDumper( $argv );
 
-if ( true ) {
-       $dumper->dump();
+if ( !isset( $options['help'] ) ) {
+       $dumper->dump( true );
 } else {
        $dumper->progress( <<<ENDS
 This script postprocesses XML dumps from dumpBackup.php to add
@@ -489,6 +489,7 @@
   --server=h  Force reading from MySQL server h
   --current      Base ETA on number of pages in database instead of all 
revisions
   --spawn        Spawn a subprocess for loading text records
+  --help      Display this help message
 ENDS
 );
 }



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to