X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fviews%2Fhelpers%2FLogoutLink.php;h=307c55cd6baf2aaa5be806ed3aaf97107315d477;hp=146276e9d2da6cf7738e4ac732ec869cb701ca50;hb=627f937d7241dc4b9311759fa446c3738d05f5a9;hpb=bd3de07b5ee90369741ef197230b4744f33eeda1 diff --git a/application/views/helpers/LogoutLink.php b/application/views/helpers/LogoutLink.php index 146276e..307c55c 100644 --- a/application/views/helpers/LogoutLink.php +++ b/application/views/helpers/LogoutLink.php @@ -5,8 +5,7 @@ class Syj_View_Helper_LogoutLink extends Zend_View_Helper_Abstract { public function logoutLink() { - $currentUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri(); - $encodeduri = implode('/', array_map('urlencode', explode('/', $currentUri))); + $encodeduri = $this->view->UriPath(true); $translatedString = $this->view->translate('logout'); $href = $this->view->addParamToUrl('logout', 'redirect', $encodeduri, true); return $this->view->anchor($href, $translatedString, array('id' => 'logout', 'class' => 'menu-item'));