be less stupid at selecting fields (this needs to be filesorted, folks..)
authorDomas Mituzas <midom@users.mediawiki.org>
Sun, 18 Nov 2007 23:20:34 +0000 (23:20 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sun, 18 Nov 2007 23:20:34 +0000 (23:20 +0000)
includes/SpecialWatchlist.php

index 1518e44..eba242c 100644 (file)
@@ -185,8 +185,10 @@ function wfSpecialWatchlist( $par ) {
                        '" /><input type="hidden" name="reset" value="all" /></form>' .
                        "\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
+}