X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fforms%2FLogin.php;h=ab3a5f6fadd318e7dbff80f7649ce2f3913648b6;hp=b42f8ba0ae6c23de878428dba013f4523cc9363f;hb=627f937d7241dc4b9311759fa446c3738d05f5a9;hpb=bd3de07b5ee90369741ef197230b4744f33eeda1 diff --git a/application/forms/Login.php b/application/forms/Login.php index b42f8ba..ab3a5f6 100644 --- a/application/forms/Login.php +++ b/application/forms/Login.php @@ -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,