From d18c056a718c0e2d3e114eef728deec48d9ba070 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 27 May 2008 00:36:39 +0000 Subject: [PATCH] Prettify ternary operator a bit --- includes/SpecialWhatlinkshere.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialWhatlinkshere.php b/includes/SpecialWhatlinkshere.php index 77a25f7a5a..3a0797409b 100644 --- a/includes/SpecialWhatlinkshere.php +++ b/includes/SpecialWhatlinkshere.php @@ -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! -- 2.20.1