Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki-CVS
SVN: [35379] trunk/phase3/includes/SpecialWhatlinkshere.php
 

Index | Next | Previous | View Flat


simetrical at svn

May 26, 2008, 5:36 PM


Views: 58
Permalink
SVN: [35379] trunk/phase3/includes/SpecialWhatlinkshere.php

Revision: 35379
Author: simetrical
Date: 2008-05-27 00:36:39 +0000 (Tue, 27 May 2008)

Log Message:
-----------
Prettify ternary operator a bit

Modified Paths:
--------------
trunk/phase3/includes/SpecialWhatlinkshere.php

Modified: trunk/phase3/includes/SpecialWhatlinkshere.php
===================================================================
--- trunk/phase3/includes/SpecialWhatlinkshere.php 2008-05-27 00:25:50 UTC (rev 35378)
+++ trunk/phase3/includes/SpecialWhatlinkshere.php 2008-05-27 00:36:39 UTC (rev 35379)
@@ -397,7 +397,8 @@
// 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!



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Subject User Time
SVN: [35379] trunk/phase3/includes/SpecialWhatlinkshere.php simetrical at svn May 26, 2008, 5:36 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.