Make SQL more SQL compliant, remove some debugging code.
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 30 Jul 2006 23:32:50 +0000 (23:32 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Sun, 30 Jul 2006 23:32:50 +0000 (23:32 +0000)
includes/SpecialRecentchangeslinked.php

index 2a611c4..3f472e6 100644 (file)
@@ -99,7 +99,7 @@ function wfSpecialRecentchangeslinked( $par = NULL ) {
             AND cl_to=$catkey
        GROUP BY rc_cur_id,rc_namespace,rc_title,
                rc_user,rc_comment,rc_user_text,rc_timestamp,rc_minor,
-               rc_new
+               rc_new, rc_id, rc_this_oldid, rc_last_oldid, rc_bot, rc_patrolled, rc_type, wl_user
                ORDER BY rc_timestamp DESC
        LIMIT {$limit};
  ";
@@ -131,7 +131,7 @@ function wfSpecialRecentchangeslinked( $par = NULL ) {
      AND pl_from=$id
 GROUP BY rc_cur_id,rc_namespace,rc_title,
         rc_user,rc_comment,rc_user_text,rc_timestamp,rc_minor,
-        rc_new
+        rc_new, rc_id, rc_this_oldid, rc_last_oldid, rc_bot, rc_patrolled, rc_type, wl_user
 ORDER BY rc_timestamp DESC
    LIMIT {$limit}";
        }
@@ -156,8 +156,6 @@ ORDER BY rc_timestamp DESC
                if ( 0 == $count ) { break; }
                $obj = $dbr->fetchObject( $res );
                --$count;
-#              print_r ( $obj ) ;
-#              print "<br/>\n" ;
 
                $rc = RecentChange::newFromRow( $obj );
                $rc->counter = $counter++;