From: Greg Sabino Mullane Date: Thu, 31 Jul 2008 16:14:32 +0000 (+0000) Subject: Add an order by to the list of watched pages. X-Git-Tag: 1.31.0-rc.0~46250 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=48518db91e1cc5bf9db981b34b18fe813878ee57;p=lhc%2Fweb%2Fwiklou.git Add an order by to the list of watched pages. --- diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index fcfdb78294..54f9d81159 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -208,6 +208,9 @@ class WatchlistEditor { $sql = "SELECT wl_namespace, wl_title, page_id, page_len, page_is_redirect FROM {$watchlist} LEFT JOIN {$page} ON ( wl_namespace = page_namespace AND wl_title = page_title ) WHERE wl_user = {$uid}"; + if ( ! $dbr->implicitOrderby() ) { + $sql .= "ORDER BY wl_title'; + } $res = $dbr->query( $sql, __METHOD__ ); if( $res && $dbr->numRows( $res ) > 0 ) { $cache = LinkCache::singleton();