}
public function execute() {
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->getDB( DB_MASTER );
$ns = $this->getOption( 'ns' );
if ( !ctype_digit( $ns ) && $ns !== 'all' ) {
$this->error( 'Invalid namespace', 1 );
if ( $dbFormat === $defaultFormat ) {
$toSave[$defaultModel][] = $row->{$key};
} else { // non-default format, just update now
- $this->output( "Updating model to match format for $table $id of $title... ");
+ $this->output( "Updating model to match format for $table $id of $title... " );
$dbw->update(
$table,
array( $model_column => $defaultModel ),