r101302 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101301‎ | r101302 | r101303 >
Date:13:47, 30 October 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Another 1.17 compatibility fix
Modified paths:
  • /trunk/extensions/Translate/scripts/migrate-schema2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/migrate-schema2.php
@@ -64,7 +64,13 @@
6565 );
6666 }
6767
68 - $dbw->dropTable( 'revtag_type' );
 68+ if ( is_callable( $dbw, 'dropTable' ) ) {
 69+ $dbw->dropTable( 'revtag_type', __METHOD__ );
 70+ } else {
 71+ // BC for MW <1.18
 72+ $table = $dbw->tableName( 'revtag_type' );
 73+ $dbw->query( "DROP TABLE $table", __METHOD__ );
 74+ }
6975
7076 }
7177

Status & tagging log