Index: trunk/phase3/includes/SpecialWhatlinkshere.php |
— | — | @@ -100,11 +100,11 @@ |
101 | 101 | |
102 | 102 | if ( $from ) { |
103 | 103 | $offsetCond = "page_id >= $from"; |
104 | | - $options['ORDER BY'] = 'page_id'; |
105 | 104 | } else { |
106 | 105 | $offsetCond = false; |
107 | | - $options['ORDER BY'] = 'page_id, is_template DESC'; |
108 | 106 | } |
| 107 | + $options['ORDER BY'] = 'page_id'; |
| 108 | + |
109 | 109 | // Read an extra row as an at-end check |
110 | 110 | $queryLimit = $limit + 1; |
111 | 111 | $options['LIMIT'] = $queryLimit; |