]> dev.renevier.net Git - syj.git/blobdiff - application/views/helpers/LocaleSwitcher.php
update copyright headers
[syj.git] / application / views / helpers / LocaleSwitcher.php
index cd4e26d3b7cfae54c62dcfd63907ba515decc047..68ea4ff4a1e63fbce254f2409b4e5cf2a59c4007 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_LocaleSwitcher extends Zend_View_Helper_Abstract
@@ -9,7 +9,7 @@ class Syj_View_Helper_LocaleSwitcher extends Zend_View_Helper_Abstract
         $availables = $translator->getList();
         $current = $translator->getLocale();
 
-        $requestUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
+        $requestUri = $this->view->UriPath();
 
         $links = array();
         foreach ($availables as $lang) {