Skip to content
Snippets Groups Projects
Commit bc4b92a7 authored by Olivier Perez's avatar Olivier Perez
Browse files

More smarty!

parent cb63031f
No related branches found
No related tags found
No related merge requests found
...@@ -41,16 +41,10 @@ if (is_file('bandeaux_local.php')) { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment