]> dev.renevier.net Git - syj.git/blobdiff - application/views/helpers/Anchor.php
update copyright headers
[syj.git] / application / views / helpers / Anchor.php
index 55cae33cd7c8b2c877c2355074cb993ef078de67..63cf9c45b8aecc5b6905ceaec309effb3e8f4f60 100644 (file)
@@ -1,19 +1,10 @@
 <?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_Anchor extends Zend_View_Helper_HtmlElement
 {
     public function Anchor($href, $text = null, array $attribs=array(), $escape = true) {
-        $lang = Zend_Controller_Front::getInstance()->getRequest()->getQuery('lang');
-        if ($lang) {
-            $translator = Zend_Registry::get('Zend_Translate');
-            $adapter = $translator->getAdapter();
-            if ($adapter->isAvailable($lang)) {
-                $href = $this->view->addParamToUrl($href, 'lang', $lang);
-            }
-        }
-
         $attribs = array_merge(array('href' => $href), $attribs);
         if (!isset($text)) {
             $text = $href;