From d0f61ba8d78bf49769725ca88ec4d91dd73a2bc5 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 28 Apr 2012 01:07:43 +0100 Subject: [PATCH] Fixup some raw sqls! Change-Id: I06dc7a76cbfeb684cb056fb4f71dd1012d953069 --- includes/specials/SpecialWatchlist.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 0c5f11cd7c..e0f2ff2a18 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -262,7 +262,14 @@ class SpecialWatchlist extends SpecialPage { $tables = array( 'recentchanges', 'watchlist' ); $fields = array( $dbr->tableName( 'recentchanges' ) . '.*' ); $join_conds = array( - 'watchlist' => array('INNER JOIN',"wl_user='{$user->getId()}' AND wl_namespace=rc_namespace AND wl_title=rc_title"), + 'watchlist' => array( + 'INNER JOIN', + array( + 'wl_user' => $user->getId(), + 'wl_namespace=rc_namespace', + 'wl_title=rc_title' + ), + ), ); $options = array( 'ORDER BY' => 'rc_timestamp DESC' ); if( $wgShowUpdatedMarker ) { -- 2.20.1