https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106335

Revision: 106335
Author:   jeroendedauw
Date:     2011-12-15 16:46:41 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
tweak, do not use remaining argument for page sort if already set

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php

Modified: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php  
2011-12-15 16:46:02 UTC (rev 106334)
+++ trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php  
2011-12-15 16:46:41 UTC (rev 106335)
@@ -186,7 +186,7 @@
 
                // If more sort arguments are provided then properties, assume 
the first one is for the page.
                // TODO: we might want to add errors if there is more then one.
-               if ( !empty( $orders ) ) {
+               if ( !array_key_exists( '', $sortKeys ) && !empty( $orders ) ) {
                        $sortKeys[''] = array_shift( $orders );
                }
                


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

Reply via email to