<?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
$availables = $translator->getList();
$current = $translator->getLocale();
- $requestUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
+ $requestUri = $this->view->UriPath();
$links = array();
foreach ($availables as $lang) {