Author: jablko
Date: Wed Sep 16 12:06:07 2009
New Revision: 3343

Log:
Avoid URLs with two query strings, fixes issue 930

Modified:
   trunk/apps/qubit/modules/i18n/templates/_changeLanguageList.php

Modified: trunk/apps/qubit/modules/i18n/templates/_changeLanguageList.php
==============================================================================
--- trunk/apps/qubit/modules/i18n/templates/_changeLanguageList.php     Wed Sep 
16 11:11:52 2009        (r3342)
+++ trunk/apps/qubit/modules/i18n/templates/_changeLanguageList.php     Wed Sep 
16 12:06:07 2009        (r3343)
@@ -1,9 +1,9 @@
 <div class="language-list">
   <?php foreach ($enabledI18nLanguages as $key => $language): ?>
     <?php if ($key == $sf_user->getCulture()): ?>
-      <?php echo link_to($language, 
$sf_data->getRaw('sf_context')->getRouting()->getCurrentInternalUri(), 
array('query_string' => 'sf_culture='.$key, 'class' => 'active')) ?>
+      <?php echo link_to($language, array('sf_culture' => $key) + 
$sf_request->getParameterHolder()->getAll(), array('class' => 'active')) ?>
     <?php else: ?>
-      <?php echo link_to($language, 
$sf_data->getRaw('sf_context')->getRouting()->getCurrentInternalUri(), 
array('query_string' => 'sf_culture='.$key)) ?>
+      <?php echo link_to($language, array('sf_culture' => $key) + 
$sf_request->getParameterHolder()->getAll()) ?>
     <?php endif; ?>
   <?php endforeach; ?>
 </div>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to