From: Greg Sabino Mullane Date: Tue, 17 Apr 2007 15:35:51 +0000 (+0000) Subject: Fix invalid ORDER BY X-Git-Tag: 1.31.0-rc.0~53374 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=ed7a6ceecee84e93a2549fd273bf74f550a21307;p=lhc%2Fweb%2Fwiklou.git Fix invalid ORDER BY --- 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;