Revert 26830, which 1) completely breaks recentchangeslinked for logged-in users...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 19 Oct 2007 20:53:01 +0000 (20:53 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 19 Oct 2007 20:53:01 +0000 (20:53 +0000)
RELEASE-NOTES
includes/SpecialRecentchangeslinked.php

index 063d7ab..d6bed90 100644 (file)
@@ -39,7 +39,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   against the previous revision, whether currently deleted or live.
 * Added tooltips for the "Go" and "Search" buttons
 * (bug 11649) Show input form when Special:Whatlinkshere has no parameters
-* Show changes to pages linked to via a redirect on Special:Recentchangeslinked
 
 === Bug fixes in 1.12 ===
 
index f1536e6..2a8ac32 100644 (file)
@@ -60,8 +60,8 @@ function wfSpecialRecentchangeslinked( $par = NULL ) {
                $cmq = 'AND rc_minor=0';
        } else { $cmq = ''; }
 
-       list($recentchanges, $categorylinks, $pagelinks, $watchlist, $redirect, $page) = 
-           $dbr->tableNamesN( 'recentchanges', 'categorylinks', 'pagelinks', "watchlist", "redirect", "page" );
+       list($recentchanges, $categorylinks, $pagelinks, $watchlist) = 
+           $dbr->tableNamesN( 'recentchanges', 'categorylinks', 'pagelinks', "watchlist" );
 
        $uid = $wgUser->getID();
 
@@ -126,19 +126,13 @@ $GROUPBY
                        rc_new_len,
                        rc_deleted
 " . ($uid ? ",wl_user" : "") . "
-   FROM $pagelinks, $recentchanges, $redirect, $page
+   FROM $pagelinks, $recentchanges
 " . ($uid ? " LEFT OUTER JOIN $watchlist ON wl_user={$uid} AND wl_title=rc_title AND wl_namespace=rc_namespace " : "") . "
    WHERE rc_timestamp > '{$cutoff}'
        {$cmq}
-     AND (pl_namespace=rc_namespace
+     AND pl_namespace=rc_namespace
      AND pl_title=rc_title
-     AND pl_from=$id)
-     OR (rd_namespace=rc_namespace
-     AND rd_title=rc_title
-     AND rd_from=page_id
-     AND page_namespace=pl_namespace
-     AND page_title=pl_title
-     AND pl_from=$id)
+     AND pl_from=$id
 $GROUPBY
 ";
        }