Prettify ternary operator a bit
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 27 May 2008 00:36:39 +0000 (00:36 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 27 May 2008 00:36:39 +0000 (00:36 +0000)
includes/SpecialWhatlinkshere.php

index 77a25f7..3a07974 100644 (file)
@@ -397,7 +397,8 @@ 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}" : " ORDER BY {$this->mIndexField} DESC";
+               $SQL .= " ORDER BY {$this->mIndexField}";
+               $SQL .= $descending ? '' : ' DESC';
                // Cut off at the specified limit
                $SQL .= ' LIMIT ' . intval( $limit );
                # Run the query!