* (bug 8331) Added the change size value to watchlists; therefor made
authorLeon Weber <leon@users.mediawiki.org>
Sat, 23 Dec 2006 23:08:41 +0000 (23:08 +0000)
committerLeon Weber <leon@users.mediawiki.org>
Sat, 23 Dec 2006 23:08:41 +0000 (23:08 +0000)
  watchlists use RecentChange::newFromRow() instead of newFromCurRow()

RELEASE-NOTES
includes/RecentChange.php
includes/SpecialWatchlist.php

index da8b598..a3edc0e 100644 (file)
@@ -398,6 +398,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (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 ==
 
index 998e5e4..c88a9f7 100644 (file)
@@ -437,7 +437,7 @@ class RecentChange
                $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(
@@ -460,8 +460,8 @@ class RecentChange
                        '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();
index 3232bf6..f149bcb 100644 (file)
@@ -283,14 +283,7 @@ function wfSpecialWatchlist( $par ) {
                        "\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
@@ -365,7 +358,7 @@ function wfSpecialWatchlist( $par ) {
        $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 ) {