MidCOM svn: r14523 - in trunk/midcom: midcom.core/midcom/helper net.nehmer.static

bergie midcom-commits at lists.midgard-project.org
Mon Jan 21 10:24:38 CET 2008


Author: bergie
Date: Mon Jan 21 10:24:38 2008
New Revision: 14523
URL: http://trac.midgard-project.org/software/changeset/14523

Log:
Move the lang ordering higher


Modified:
   trunk/midcom/midcom.core/midcom/helper/_basicnav.php
   trunk/midcom/net.nehmer.static/navigation.php

Modified: trunk/midcom/midcom.core/midcom/helper/_basicnav.php
==============================================================================
--- trunk/midcom/midcom.core/midcom/helper/_basicnav.php	(original)
+++ trunk/midcom/midcom.core/midcom/helper/_basicnav.php	Mon Jan 21 10:24:38 2008
@@ -1137,11 +1137,11 @@
         $collector->add_constraint('name', '<>', '');
         $collector->add_constraint('metadata.navnoentry', '=', 0);
 
-        $collector->add_order('metadata.score', 'DESC');
-        $collector->add_order('metadata.created');
-        
         // FIXME: This is a workaround for some MultiLang bugs
         $collector->add_order('lang', 'DESC');
+
+        $collector->add_order('metadata.score', 'DESC');
+        $collector->add_order('metadata.created');
         
         $collector->execute();
 

Modified: trunk/midcom/net.nehmer.static/navigation.php
==============================================================================
--- trunk/midcom/net.nehmer.static/navigation.php	(original)
+++ trunk/midcom/net.nehmer.static/navigation.php	Mon Jan 21 10:24:38 2008
@@ -88,14 +88,14 @@
             $mc->add_constraint('name', '<>', 'index');
         }
         
+        // FIXME: This is a workaround for some MultiLang bugs
+        $mc->add_order('lang', 'DESC');
+        
         $mc->add_order($this->_config->get('sort_order'));
 
         // Sort items with the same primary sort key by title.
         $mc->add_order('title');
 
-        // FIXME: This is a workaround for some MultiLang bugs
-        $mc->add_order('lang', 'DESC');
-
         $mc->execute();
         
         $articles = $mc->list_keys();


More information about the midcom-commits mailing list