From ac9d01aaea19ae2de146b98a1a2fea91d8e98754 Mon Sep 17 00:00:00 2001 From: arno Date: Tue, 12 Apr 2011 23:56:44 +0200 Subject: [PATCH] locale switcher takes full url (does not drop search part) --- application/views/helpers/LocaleSwitcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5