修改了登录后自动跳转的链接.

This commit is contained in:
Li Jianxuan 2013-09-30 02:00:43 +00:00
parent 737a967a51
commit 60da9b5ea6
1 changed files with 10 additions and 5 deletions

View File

@ -306,7 +306,12 @@ class AccountController extends Zend_Controller_Action
if(($options['module']=="default" && $options['controller'] == "account" && $options['action'] == "login"))
{
$this->view->href = '/';
$this->view->href = $_SERVER['REQUEST_URI'];
}
if($tohref == "/account/login")
{
$this->view->href = $tohref = "/";
}
if(!empty($tohref))
@ -364,7 +369,6 @@ class AccountController extends Zend_Controller_Action
}
else
{
if(!empty($tohref))
{
view::Post($this,"登录成功,正在跳转",$tohref);
@ -592,6 +596,7 @@ class AccountController extends Zend_Controller_Action
}
}
}
} //找回密码
}