diff --git a/admin/purge.php b/admin/purge.php
index 5a8e268..fb817f1 100644
--- a/admin/purge.php
+++ b/admin/purge.php
@@ -21,7 +21,6 @@ use Framadate\Services\InputService;
use Framadate\Services\LogService;
use Framadate\Services\PurgeService;
use Framadate\Services\SecurityService;
-use Framadate\Utils;
include_once __DIR__ . '/../app/inc/init.php';
include_once __DIR__ . '/../bandeaux.php';
diff --git a/app/classes/Framadate/Form.php b/app/classes/Framadate/Form.php
index ce802ba..f73cd9e 100644
--- a/app/classes/Framadate/Form.php
+++ b/app/classes/Framadate/Form.php
@@ -18,8 +18,6 @@
*/
namespace Framadate;
-use Framadate\Editable;
-
class Form
{
diff --git a/create_classic_poll.php b/create_classic_poll.php
index 1b989e8..21c652b 100644
--- a/create_classic_poll.php
+++ b/create_classic_poll.php
@@ -41,13 +41,13 @@ if (file_exists('bandeaux_local.php')) {
// 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)) {
- Utils::print_header(__("Error!"));
- bandeau_titre(__("Error!"));
+ Utils::print_header(__('Error', 'Error!'));
+ bandeau_titre(__('Error', 'Error!'));
echo '
-
' . __('You haven\'t filled the first section of the poll creation.') . ' !
-
' . __('Back to the homepage of') . ' ' . NOMAPPLICATION . '
+
' . __('Error', 'You haven\'t filled the first section of the poll creation.') . ' !
+
' . __('Generic', 'Back to the homepage of') . ' ' . NOMAPPLICATION . '
' . "\n";
bandeau_pied();
@@ -149,7 +149,7 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || (
// Summary
$summary = '';
- foreach ($_SESSION['form']->getChoices() as $choice) {
+ foreach ($_SESSION['form']->getChoices() as $i=>$choice) {
preg_match_all('/\[!\[(.*?)\]\((.*?)\)\]\((.*?)\)/', $choice->getName(), $md_a_img); // Markdown [![alt](src)](href)
preg_match_all('/!\[(.*?)\]\((.*?)\)/', $choice->getName(), $md_img); // Markdown ![alt](src)
diff --git a/create_date_poll.php b/create_date_poll.php
index aec2a26..f170b5b 100644
--- a/create_date_poll.php
+++ b/create_date_poll.php
@@ -194,7 +194,7 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) ||
('. __('Date', 'dd/mm/yyyy') .')
diff --git a/exportcsv.php b/exportcsv.php
index f5b5d0b..6197cfb 100644
--- a/exportcsv.php
+++ b/exportcsv.php
@@ -18,9 +18,6 @@
*/
use Framadate\Services\LogService;
use Framadate\Services\PollService;
-use Framadate\Services\InputService;
-use Framadate\Services\MailService;
-use Framadate\Message;
use Framadate\Utils;
include_once __DIR__ . '/app/inc/init.php';
diff --git a/index.php b/index.php
index e756076..364c90c 100644
--- a/index.php
+++ b/index.php
@@ -17,9 +17,7 @@
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
*/
-use Framadate\Services\LogService;
use Framadate\Services\PollService;
-use Framadate\Utils;
include_once __DIR__ . '/app/inc/init.php';
diff --git a/studs.php b/studs.php
index 0ebdd0f..9448297 100644
--- a/studs.php
+++ b/studs.php
@@ -151,7 +151,7 @@ if (!empty($_POST['save'])) { // Save edition of an old vote
$message = new Message('danger', __('Error', 'The name is invalid.'));
}
if (count($choices) != count($_POST['choices'])) {
- $message = new Message('danger', __('There is a problem with your choices'));
+ $message = new Message('danger', __('Error', 'There is a problem with your choices'));
}
if ($message == null) {