]> dev.renevier.net Git - syj.git/commitdiff
locale switcher takes full url (does not drop search part)
authorarno <arno@renevier.net>
Tue, 12 Apr 2011 21:56:44 +0000 (23:56 +0200)
committerarno <arno@renevier.net>
Tue, 12 Apr 2011 21:56:50 +0000 (23:56 +0200)
application/views/helpers/LocaleSwitcher.php

index 68ea4ff4a1e63fbce254f2409b4e5cf2a59c4007..2f4237b958c5f82685d0f22a01f70e7516dd3a7b 100644 (file)
@@ -9,7 +9,7 @@ class Syj_View_Helper_LocaleSwitcher extends Zend_View_Helper_Abstract
         $availables = $translator->getList();
         $current = $translator->getLocale();
 
         $availables = $translator->getList();
         $current = $translator->getLocale();
 
-        $requestUri = $this->view->UriPath();
+        $requestUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
 
         $links = array();
         foreach ($availables as $lang) {
 
         $links = array();
         foreach ($availables as $lang) {