Moved the bulk of dbsource() to Database.php. Added support for updating wikis with...
[lhc/web/wiklou.git] / maintenance / transstat.php
index 3977327..8bdd7c0 100644 (file)
@@ -15,7 +15,7 @@
 require_once('commandLine.inc');
 require_once('languages.inc');
 
-if( isset($options['help']) ) { usage(); die(); }
+if( isset($options['help']) ) { usage(); wfDie(); }
 // default output is WikiText
 if( !isset($options['output']) ) { $options['output']='wiki'; }
 
@@ -27,9 +27,9 @@ Usage: php transstat.php [--help] [--output:csv|text|wiki]
          --help : this helpful message
        --output : select an output engine one of:
                     * 'csv'  : Comma Separated Values.
-                    * 'wiki' : MediaWiki syntax.
+                    * 'wiki' : MediaWiki syntax (default).
                     * 'text' : Text with tabs.
-                     Default output is 'wiki'
+
 END;
 }
 
@@ -103,7 +103,7 @@ class csvStatsOutput extends statsOutput {
 
 function redundant(&$arr) {
        global $wgAllMessagesEn;
-       
+
        $redundant = 0;
        foreach(array_keys($arr) as $key) {
                if ( @$wgAllMessagesEn[$key] === null )
@@ -121,7 +121,7 @@ switch ($options['output']) {
        case 'wiki':
                $out = new wikiStatsOutput(); break;
        default:
-               usage(); die();
+               usage(); wfDie();
        break;
 }