Index: trunk/extensions/DataTransclusion/ImportMAB2.php |
— | — | @@ -122,7 +122,9 @@ |
123 | 123 | if ( $this->hasOption('create') ) { |
124 | 124 | $this->output( "creating tables if neccessary.\n" ); |
125 | 125 | $this->createTables( $this->blob_table, $this->index_table ); |
126 | | - } else if ( $this->hasOption('truncate') ) { |
| 126 | + } |
| 127 | + |
| 128 | + if ( $this->hasOption('truncate') ) { |
127 | 129 | $this->output( "truncating tables.\n" ); |
128 | 130 | $this->truncateTables( $this->blob_table, $this->index_table ); |
129 | 131 | } |