]> dev.renevier.net Git - syj.git/blobdiff - application/views/helpers/LogoutLink.php
update copyright headers
[syj.git] / application / views / helpers / LogoutLink.php
index ad6c6e45dc972f17d2aba24fefed1beb2c50c37f..e69fc9749be2353853ac726db8deadf0171dd81c 100644 (file)
@@ -1,14 +1,13 @@
 <?php
-/*  This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/*  This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
     and is published under the AGPL license. */
 
 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' => 'login-anchor'));
+        return $this->view->anchor($href, $translatedString, array('id' => 'logout', 'class' => 'menu-item'));
     }
 }