Save a table join when looking up blocks (yay!)
Minor issue, for blocks where users have been renamed, we get their old name (Not a big deal IMHO)
* (bug 27479) API error when using both prop=pageprops and
prop=info&inprop=displaytitle
* (bug 27554) Update api information text to reflect change in bug 26125
+* (bug 27611) list=blocks: Use ipb_by_text instead of join with user table
=== Languages updated in 1.18 ===
$this->addFields( array( 'ipb_address', 'ipb_user' ) );
}
if ( $fld_by ) {
- $this->addTables( 'user' );
- $this->addFields( array( 'ipb_by', 'user_name' ) );
- $this->addWhere( 'user_id = ipb_by' );
+ $this->addFields( 'ipb_by_text' );
}
if ( $fld_timestamp ) {
$this->addFields( 'ipb_timestamp' );
$block['user'] = $row->ipb_address;
}
if ( $fld_by ) {
- $block['by'] = $row->user_name;
+ $block['by'] = $row->ipb_by_text;
}
if ( $fld_timestamp ) {
$block['timestamp'] = wfTimestamp( TS_ISO_8601, $row->ipb_timestamp );