Passing message directly in template
This commit is contained in:
parent
b66a47ef67
commit
e4ec0c8105
@ -374,6 +374,5 @@ $smarty->assign('editingVoteId', $editingVoteId);
|
||||
$smarty->assign('message', $message);
|
||||
$smarty->assign('admin', true);
|
||||
$smarty->assign('parameter_name_regex', NAME_REGEX);
|
||||
$smarty->assign('parameter_name_error', _('Name is incorrect.'));
|
||||
|
||||
$smarty->display('studs.tpl');
|
@ -203,6 +203,5 @@ $smarty->assign('editingVoteId', $editingVoteId);
|
||||
$smarty->assign('message', $message);
|
||||
$smarty->assign('admin', false);
|
||||
$smarty->assign('parameter_name_regex', NAME_REGEX);
|
||||
$smarty->assign('parameter_name_error', _('Name is incorrect.'));
|
||||
|
||||
$smarty->display('studs.tpl');
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
<div class="hidden">
|
||||
<p id="parameter_name_regex">{$parameter_name_regex}</p>
|
||||
<p id="parameter_name_error">{$parameter_name_error}</p>
|
||||
<p id="parameter_name_error">{__('Error','Name is incorrect.')|var_dump}</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user