From: Aaron Schulz Date: Tue, 27 May 2008 00:21:53 +0000 (+0000) Subject: Fix order...that was confusing X-Git-Tag: 1.31.0-rc.0~47365 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0eb6a49e2a6e5e34d0c201785c04181337da6f0a;p=lhc%2Fweb%2Fwiklou.git Fix order...that was confusing --- 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!