* (bug 7612) Remove superfluous link to Special:Categories from result items
on Special:Mostcategories
* {{PLURAL:}} now handles formatted numbers correctly
+* (bug 8331) Added the change size value to watchlists; therefor made
+ watchlists use RecentChange::newFromRow() instead of newFromCurRow()
== Languages updated ==
$this->mExtra = array();
}
- # Makes a pseudo-RC entry from a cur row, for watchlists and things
+ # Makes a pseudo-RC entry from a cur row
function loadFromCurRow( $row )
{
$this->mAttribs = array(
'rc_id' => $row->rc_id,
'rc_patrolled' => $row->rc_patrolled,
'rc_new' => $row->page_is_new, # obsolete
- 'rc_old_len' => NULL, # we can't get the text lengts from a cur row
- 'rc_new_len' => NULL,
+ 'rc_old_len' => $row->rc_old_len,
+ 'rc_new_len' => $row->rc_new_len,
);
$this->mExtra = array();
"\n\n" );
}
- $sql = "SELECT
- rc_namespace AS page_namespace, rc_title AS page_title,
- rc_comment AS rev_comment, rc_cur_id AS page_id,
- rc_user AS rev_user, rc_user_text AS rev_user_text,
- rc_timestamp AS rev_timestamp, rc_minor AS rev_minor_edit,
- rc_this_oldid AS rev_id,
- rc_last_oldid, rc_id, rc_patrolled,
- rc_new AS page_is_new,wl_notificationtimestamp
+ $sql = "SELECT *
FROM $watchlist,$recentchanges,$page
WHERE wl_user=$uid
AND wl_namespace=rc_namespace
$counter = 1;
while ( $obj = $dbr->fetchObject( $res ) ) {
# Make fake RC entry
- $rc = RecentChange::newFromCurRow( $obj, $obj->rc_last_oldid );
+ $rc = RecentChange::newFromRow( $obj );
$rc->counter = $counter++;
if ( $wgShowUpdatedMarker ) {