From: Tim Starling Date: Sat, 31 Jan 2004 12:00:32 +0000 (+0000) Subject: fixed subtle bug -- missing comma in SQL causing watchlist to display user page link... X-Git-Tag: 1.3.0beta1~1051 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=3a60685658f07f9fee7054b4ce392ebbf53e0939;p=lhc%2Fweb%2Fwiklou.git fixed subtle bug -- missing comma in SQL causing watchlist to display user page link for anon --- 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