]> dev.renevier.net Git - syj.git/blobdiff - application/views/helpers/FooterLink.php
store lang preference in session instead of url
[syj.git] / application / views / helpers / FooterLink.php
index cebae509b396d2fb277749d89d6391423ae56365..0a2a4752a7ad0416ca5ece1aea1fc92ed8b99dc2 100644 (file)
@@ -11,10 +11,7 @@ class Syj_View_Helper_FooterLink extends Zend_View_Helper_Abstract
         } else {
             $href = $page->getHRef();
             if ($redirect) {
-                $currentUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
-                if (($pos = strpos($currentUri, '?')) !== false) {
-                    $currentUri = substr($currentUri, 0, $pos);
-                 }
+                $currentUri = $this->view->UriPath(true);
                 $href = $this->view->addParamToUrl($href, 'redirect', $currentUri, true);
             }
             $link = $this->view->anchor($href, $text, array('class' => 'footer-anchor'));