wfOut( "Dropping rule \"archive_delete\"\n" );
$this->db->query( 'DROP RULE archive_delete ON archive' );
}
- $this->db->sourceFile( archive( 'patch-remove-archive2.sql' ) );
+ $this->applyPatch( 'patch-remove-archive2.sql' );
} else {
wfOut( "... obsolete table \"archive2\" does not exist\n" );
}
}
function archive( $name ) {
- global $wgDBtype, $IP;
- if ( file_exists( "$IP/maintenance/$wgDBtype/archives/$name" ) ) {
- return "$IP/maintenance/$wgDBtype/archives/$name";
- } else {
- return "$IP/maintenance/archives/$name";
- }
+ wfDeprecated( __FUNCTION__ );
+ return DatabaseBase::patchPath( $name );
}
function do_interwiki_update() {