From: Domas Mituzas Date: Sun, 18 Nov 2007 23:20:34 +0000 (+0000) Subject: be less stupid at selecting fields (this needs to be filesorted, folks..) X-Git-Tag: 1.31.0-rc.0~50819 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=024bafcd75cdcf4862121d5802d94aa919d90cca;p=lhc%2Fweb%2Fwiklou.git be less stupid at selecting fields (this needs to be filesorted, folks..) --- 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 +}