Had a bash at cleaning up the horrendous-looking deletion log on the edit page:
[lhc/web/wiklou.git] / maintenance / dumpBackup.php
index 6f90fc5..8e0941e 100644 (file)
  *
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
  *
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
  */
 
 $originalDir = getcwd();
 
-$optionsWithArgs = array( 'server', 'pagelist', 'start', 'end' );
+$optionsWithArgs = array( 'pagelist', 'start', 'end' );
 
 require_once( 'commandLine.inc' );
 require_once( 'SpecialExport.php' );
@@ -35,12 +34,6 @@ $dumper = new BackupDumper( $argv );
 if( isset( $options['quiet'] ) ) {
        $dumper->reporting = false;
 }
-if( isset( $options['report'] ) ) {
-       $dumper->reportingInterval = intval( $options['report'] );
-}
-if( isset( $options['server'] ) ) {
-       $dumper->server = $options['server'];
-}
 
 if ( isset( $options['pagelist'] ) ) {
        $olddir = getcwd();
@@ -63,12 +56,12 @@ if( isset( $options['end'] ) ) {
 $dumper->skipHeader = isset( $options['skip-header'] );
 $dumper->skipFooter = isset( $options['skip-footer'] );
 
-$textMode = isset( $options['stub'] ) ? MW_EXPORT_STUB : MW_EXPORT_TEXT;
+$textMode = isset( $options['stub'] ) ? WikiExporter::STUB : WikiExporter::TEXT;
 
 if( isset( $options['full'] ) ) {
-       $dumper->dump( MW_EXPORT_FULL, $textMode );
+       $dumper->dump( WikiExporter::FULL, $textMode );
 } elseif( isset( $options['current'] ) ) {
-       $dumper->dump( MW_EXPORT_CURRENT, $textMode );
+       $dumper->dump( WikiExporter::CURRENT, $textMode );
 } else {
        $dumper->progress( <<<END
 This script dumps the wiki page database into an XML interchange wrapper