Index: trunk/phase3/includes/api/ApiQueryBlocks.php |
— | — | @@ -72,9 +72,7 @@ |
73 | 73 | $this->addFields( array( 'ipb_address', 'ipb_user' ) ); |
74 | 74 | } |
75 | 75 | if ( $fld_by ) { |
76 | | - $this->addTables( 'user' ); |
77 | | - $this->addFields( array( 'ipb_by', 'user_name' ) ); |
78 | | - $this->addWhere( 'user_id = ipb_by' ); |
| 76 | + $this->addFields( 'ipb_by_text' ); |
79 | 77 | } |
80 | 78 | if ( $fld_timestamp ) { |
81 | 79 | $this->addFields( 'ipb_timestamp' ); |
— | — | @@ -152,7 +150,7 @@ |
153 | 151 | $block['user'] = $row->ipb_address; |
154 | 152 | } |
155 | 153 | if ( $fld_by ) { |
156 | | - $block['by'] = $row->user_name; |
| 154 | + $block['by'] = $row->ipb_by_text; |
157 | 155 | } |
158 | 156 | if ( $fld_timestamp ) { |
159 | 157 | $block['timestamp'] = wfTimestamp( TS_ISO_8601, $row->ipb_timestamp ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -177,6 +177,7 @@ |
178 | 178 | * (bug 27479) API error when using both prop=pageprops and |
179 | 179 | prop=info&inprop=displaytitle |
180 | 180 | * (bug 27554) Update api information text to reflect change in bug 26125 |
| 181 | +* (bug 27611) list=blocks: Use ipb_by_text instead of join with user table |
181 | 182 | |
182 | 183 | === Languages updated in 1.18 === |
183 | 184 | |