From: arno Date: Tue, 12 Apr 2011 21:56:44 +0000 (+0200) Subject: locale switcher takes full url (does not drop search part) X-Git-Tag: v0.3.2~11 X-Git-Url: https://dev.renevier.net/?a=commitdiff_plain;ds=inline;h=ac9d01aaea19ae2de146b98a1a2fea91d8e98754;p=syj.git locale switcher takes full url (does not drop search part) --- diff --git a/application/views/helpers/LocaleSwitcher.php b/application/views/helpers/LocaleSwitcher.php index 68ea4ff..2f4237b 100644 --- a/application/views/helpers/LocaleSwitcher.php +++ b/application/views/helpers/LocaleSwitcher.php @@ -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) {