From: Aryeh Gregor Date: Tue, 27 May 2008 00:36:39 +0000 (+0000) Subject: Prettify ternary operator a bit X-Git-Tag: 1.31.0-rc.0~47363 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=d18c056a718c0e2d3e114eef728deec48d9ba070;p=lhc%2Fweb%2Fwiklou.git Prettify ternary operator a bit --- 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!