]> dev.renevier.net Git - syj.git/blobdiff - application/views/helpers/LocaleSwitcher.php
locale switcher takes full url (does not drop search part)
[syj.git] / application / views / helpers / LocaleSwitcher.php
index f5b9042f94ee43f7f780eb44c8c0e2896bd68cba..2f4237b958c5f82685d0f22a01f70e7516dd3a7b 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 class Syj_View_Helper_LocaleSwitcher extends Zend_View_Helper_Abstract
@@ -9,7 +9,7 @@ class Syj_View_Helper_LocaleSwitcher extends Zend_View_Helper_Abstract
         $availables = $translator->getList();
         $current = $translator->getLocale();
 
-        $requestUri = $this->view->UriPath();
+        $requestUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
 
         $links = array();
         foreach ($availables as $lang) {