From 024bafcd75cdcf4862121d5802d94aa919d90cca Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sun, 18 Nov 2007 23:20:34 +0000 Subject: [PATCH] be less stupid at selecting fields (this needs to be filesorted, folks..) --- includes/SpecialWatchlist.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 1518e4441f..eba242c228 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -185,8 +185,10 @@ function wfSpecialWatchlist( $par ) { '" />' . "\n\n" ); } - - $sql = "SELECT * + if ( $wgShowUpdatedMarker ) { + $wltsfield=", ${watchlist}.wl_notificationtimestamp "; + } + $sql = "SELECT ${recentchanges}.* ${wltsfield} FROM $watchlist,$recentchanges,$page WHERE wl_user=$uid AND wl_namespace=rc_namespace @@ -370,4 +372,4 @@ function wlCountItems( &$user, $talk = true ) { $count = floor( $count / 2 ); return( $count ); -} \ No newline at end of file +} -- 2.20.1