From 0eb6a49e2a6e5e34d0c201785c04181337da6f0a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 27 May 2008 00:21:53 +0000 Subject: [PATCH] Fix order...that was confusing --- includes/SpecialWhatlinkshere.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index f5e6ca3bea..22bd2291d1 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -399,7 +399,7 @@ class WhatLinksHerePager extends AlphabeticPager { // Remove duplicates within the result set. $SQL .= ' GROUP BY page_id'; // Use proper order of result set - $SQL .= $descending ? " ORDER BY {$this->mIndexField} DESC" : " ORDER BY {$this->mIndexField}"; + $SQL .= $descending ? " ORDER BY {$this->mIndexField}" : " ORDER BY {$this->mIndexField} DESC"; // Cut off at the specified limit $SQL .= ' LIMIT ' . intval( $limit ); # Run the query! -- 2.20.1