From 3a60685658f07f9fee7054b4ce392ebbf53e0939 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 31 Jan 2004 12:00:32 +0000 Subject: [PATCH] fixed subtle bug -- missing comma in SQL causing watchlist to display user page link for anon --- includes/Skin.php | 8 +++++--- includes/SpecialWatchlist.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index d70c54eb1d..c6ce5304a2 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2050,10 +2050,12 @@ class Skin { # Make user link (or user contributions for unregistered users) if ( 0 == $rc_user ) { - $userLink = $this->makeKnownLink( $wgLang->specialPage( "Contributions" ), + $userLink = $this->makeKnownLink( $wgLang->specialPage( "Contributions" ), $rc_user_text, "target=" . $rc_user_text ); - } else { $userLink = $this->makeLink( $wgLang->getNsText( - Namespace::getUser() ) . ":{$rc_user_text}", $rc_user_text ); } + } else { + $userLink = $this->makeLink( $wgLang->getNsText( + Namespace::getUser() ) . ":{$rc_user_text}", $rc_user_text ); + } $rc->userlink = $userLink ; $rc->lastlink = $lastLink ; diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 08d8ae4cc6..2691764027 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -135,7 +135,7 @@ function wfSpecialWatchlist() $sql = "SELECT - cur_namespace,cur_title,cur_comment, cur_id + cur_namespace,cur_title,cur_comment, cur_id, cur_user,cur_user_text,cur_timestamp,cur_minor_edit,cur_is_new FROM watchlist,cur USE INDEX ($x) WHERE wl_user=$uid -- 2.20.1