// Fixed issue with refresh of default_country_modules_list.xml

This commit is contained in:
dMetzger
2012-10-03 16:22:09 +00:00
parent b89c8f0966
commit e19831ba78
5 changed files with 14 additions and 10 deletions
+3 -4
View File
@@ -185,8 +185,9 @@ class AdminLoginControllerCore extends AdminController
public function processForgot()
{
$email = trim(Tools::getValue('email_forgot'));
if (empty($email))
if (_PS_MODE_DEMO_)
$this->errors[] = Tools::displayError('This functionality has been disabled.');
elseif (!($email = trim(Tools::getValue('email_forgot'))))
$this->errors[] = Tools::displayError('E-mail is empty');
elseif (!Validate::isEmail($email))
$this->errors[] = Tools::displayError('Invalid e-mail address');
@@ -201,8 +202,6 @@ class AdminLoginControllerCore extends AdminController
Configuration::get('PS_PASSWD_TIME_BACK')
);
}
if (_PS_MODE_DEMO_)
$this->errors[] = Tools::displayError('This functionality has been disabled.');
if (!count($this->errors))
{