r73200 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73199‎ | r73200 | r73201 >
Date:08:56, 17 September 2010
Author:daniel
Status:deferred
Tags:
Comment:
allow --create and --truncate at once
Modified paths:
  • /trunk/extensions/DataTransclusion/ImportMAB2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataTransclusion/ImportMAB2.php
@@ -122,7 +122,9 @@
123123 if ( $this->hasOption('create') ) {
124124 $this->output( "creating tables if neccessary.\n" );
125125 $this->createTables( $this->blob_table, $this->index_table );
126 - } else if ( $this->hasOption('truncate') ) {
 126+ }
 127+
 128+ if ( $this->hasOption('truncate') ) {
127129 $this->output( "truncating tables.\n" );
128130 $this->truncateTables( $this->blob_table, $this->index_table );
129131 }

Status & tagging log