$smarty->assign('action_block','file:blocks/restore_pass_block.tpl');
$page['need_validator']=1;
$page['seo_title'] = 'Восстановление пароля';
if(req('do',0)==1){
require_once(SYSTEM_MODULES.'mailer/mail.php');
$user = get_user_by_email(req('login',''));
// dump_html($user);
if(isset($user['user_password'])){
$data['HTROOT'] = HTROOT;
$data['user_email'] = $user['user_email'];
$data['user_password'] = $user['user_password'];
$mail = parse_mail_template('pass_recovery',$data);
if(isset($mail['title'])){
send_mime_mail($mail['body'],$mail['title'],array($user['user_email']),SEND_MAIL_FROM_ROBOADMIN);
}
$smarty->assign('success_restore',1);
}else{
$smarty->assign('success_restore',0);
$smarty->assign('restore_error','Не нашли такой email');
}
}else{
$smarty->assign('success_restore',0);
}
?>
Fatal error: Uncaught TypeError: Smarty\Template::parseResourceName(): Return value must be of type string, null returned in /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php:304
Stack trace:
#0 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(255): Smarty\Template->parseResourceName()
#1 /var/www/web.nixpro.by/html/mozgi/morda/templates_c/29c7b43fc13004120c7853c3de8a7a78e4bd7426_0.file_index.tpl.php(106): Smarty\Template->renderSubTemplate()
#2 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template/GeneratedPhpFile.php(111): content_69f1487a642d28_24276161()
#3 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template/Compiled.php(110): Smarty\Template\GeneratedPhpFile->getRenderedTemplateCode()
#4 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(180): Smarty\Template\Compiled->render()
#5 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(655): Smarty\Template->render()
#6 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php(589): Smarty\Template->_execute()
#7 /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Smarty.php(2121): Smarty\Template->fetch()
#8 /var/www/web.nixpro.by/html/index.php(581): Smarty\Smarty->fetch()
#9 {main}
thrown in /var/www/web.nixpro.by/html/mozgi/lib/smarty-5.5.2/src/Template.php on line 304