Fix order...that was confusing
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 27 May 2008 00:21:53 +0000 (00:21 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 27 May 2008 00:21:53 +0000 (00:21 +0000)
includes/SpecialWhatlinkshere.php

index f5e6ca3..22bd229 100644 (file)
@@ -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!