r21327 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21326‎ | r21327 | r21328 >
Date:15:35, 17 April 2007
Author:greg
Status:old
Tags:
Comment:
Fix invalid ORDER BY
Modified paths:
  • /trunk/phase3/includes/SpecialWhatlinkshere.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialWhatlinkshere.php
@@ -100,11 +100,11 @@
101101
102102 if ( $from ) {
103103 $offsetCond = "page_id >= $from";
104 - $options['ORDER BY'] = 'page_id';
105104 } else {
106105 $offsetCond = false;
107 - $options['ORDER BY'] = 'page_id, is_template DESC';
108106 }
 107+ $options['ORDER BY'] = 'page_id';
 108+
109109 // Read an extra row as an at-end check
110110 $queryLimit = $limit + 1;
111111 $options['LIMIT'] = $queryLimit;