From: Reedy Date: Sat, 28 Apr 2012 00:07:43 +0000 (+0100) Subject: Fixup some raw sqls! X-Git-Tag: 1.31.0-rc.0~23783^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=d0f61ba8d78bf49769725ca88ec4d91dd73a2bc5;p=lhc%2Fweb%2Fwiklou.git Fixup some raw sqls! Change-Id: I06dc7a76cbfeb684cb056fb4f71dd1012d953069 --- 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 ) {