More smarty!
This commit is contained in:
parent
cb63031f15
commit
bc4b92a7bb
@ -41,16 +41,10 @@ if (is_file('bandeaux_local.php')) {
|
|||||||
// Step 1/4 : error if $_SESSION from info_sondage are not valid
|
// Step 1/4 : error if $_SESSION from info_sondage are not valid
|
||||||
if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || (($config['use_smtp']) ? empty($_SESSION['form']->admin_mail) : false)) {
|
if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || (($config['use_smtp']) ? empty($_SESSION['form']->admin_mail) : false)) {
|
||||||
|
|
||||||
Utils::print_header(__('Error', 'Error!'));
|
$smarty->assign('title', __('Error', 'Error!'));
|
||||||
bandeau_titre(__('Error', 'Error!'));
|
$smarty->assign('error', __('Error', 'You haven\'t filled the first section of the poll creation.'));
|
||||||
|
$smarty->display('error.tpl');
|
||||||
echo '
|
exit;
|
||||||
<div class="alert alert-danger">
|
|
||||||
<h3>' . __('Error', 'You haven\'t filled the first section of the poll creation.') . ' !</h3>
|
|
||||||
<p>' . __('Generic', 'Back to the homepage of') . ' <a href="' . Utils::get_server_name() . '"> ' . NOMAPPLICATION . '</a></p>
|
|
||||||
</div>' . "\n";
|
|
||||||
|
|
||||||
bandeau_pied();
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Min/Max archive date
|
// Min/Max archive date
|
||||||
|
Loading…
Reference in New Issue
Block a user