]> dev.renevier.net Git - syj.git/blobdiff - application/views/helpers/FooterLink.php
update copyright headers
[syj.git] / application / views / helpers / FooterLink.php
index cebae509b396d2fb277749d89d6391423ae56365..1e9365b6e3115346706fb0b4f2de865d2c9f3060 100644 (file)
@@ -1,5 +1,5 @@
 <?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_FooterLink extends Zend_View_Helper_Abstract
@@ -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'));