X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fviews%2Fhelpers%2FLogoutLink.php;h=e69fc9749be2353853ac726db8deadf0171dd81c;hb=1f6105289a49079809c2a4677b561bc82c62db88;hp=d76682e616aeba87cb3f3f83fbb7366e62022d40;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git diff --git a/application/views/helpers/LogoutLink.php b/application/views/helpers/LogoutLink.php index d76682e..e69fc97 100644 --- a/application/views/helpers/LogoutLink.php +++ b/application/views/helpers/LogoutLink.php @@ -1,16 +1,13 @@ getRequest()->getRequestUri(); - if (strpos($currentUri, '?') !== false) { - $currentUri = strstr($currentUri, '?', true); - } + $encodeduri = $this->view->UriPath(true); $translatedString = $this->view->translate('logout'); - $href = $this->view->addParamToUrl('logout', 'redirect', $currentUri, true); - return $this->view->anchor($href, $translatedString, array('id' => 'logout', 'class' => 'login-anchor')); + $href = $this->view->addParamToUrl('logout', 'redirect', $encodeduri, true); + return $this->view->anchor($href, $translatedString, array('id' => 'logout', 'class' => 'menu-item')); } }