]> dev.renevier.net Git - syj.git/blobdiff - application/forms/Login.php
store lang preference in session instead of url
[syj.git] / application / forms / Login.php
index b42f8ba0ae6c23de878428dba013f4523cc9363f..ab3a5f6fadd318e7dbff80f7649ce2f3913648b6 100644 (file)
@@ -13,10 +13,7 @@ class Syj_Form_Login extends Syj_Form_TableAbstract
         $this->setMainElements(array($user, $pass))
              ->addElement('Hidden', 'login_geom_id', array( 'decorators' => array('ViewHelper')));
 
-        $currentUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
-        if (strpos($currentUri, '?') !== false) {
-            $currentUri = strstr($currentUri, '?', true);
-        }
+        $currentUri = $this->getView()->UriPath(true);
         $href = $this->getView()->addParamToUrl('newpwd', 'redirect', $currentUri, true);
 
         $anchor = $this->getView()->Anchor($href,