From ed7a6ceecee84e93a2549fd273bf74f550a21307 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 17 Apr 2007 15:35:51 +0000 Subject: [PATCH] Fix invalid ORDER BY --- includes/SpecialWhatlinkshere.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index 45ebc503f5..f077cca79f 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -100,11 +100,11 @@ class WhatLinksHerePage { if ( $from ) { $offsetCond = "page_id >= $from"; - $options['ORDER BY'] = 'page_id'; } else { $offsetCond = false; - $options['ORDER BY'] = 'page_id, is_template DESC'; } + $options['ORDER BY'] = 'page_id'; + // Read an extra row as an at-end check $queryLimit = $limit + 1; $options['LIMIT'] = $queryLimit; -- 2.20.1