diff --git a/.php_cs b/.php_cs index 30f2c6a..4ebdc6e 100644 --- a/.php_cs +++ b/.php_cs @@ -38,7 +38,8 @@ return PhpCsFixer\Config::create() ->exclude([ 'vendor', 'var', - 'web' + 'web', + 'tpl_c', ]) ->in(__DIR__) ) diff --git a/create_poll.php b/create_poll.php index 91b8ed0..b198365 100644 --- a/create_poll.php +++ b/create_poll.php @@ -41,9 +41,7 @@ if (!isset($_SESSION['form'])) { } // Type de sondage -if (isset($_GET['type']) && $_GET['type'] === 'date' || - isset($_POST['type']) && $_POST['type'] === 'date' -) { +if (isset($_GET['type']) && $_GET['type'] === 'date') { $poll_type = 'date'; $_SESSION['form']->choix_sondage = $poll_type; } else { diff --git a/locale.bat b/locale.bat deleted file mode 100644 index a9e53b5..0000000 --- a/locale.bat +++ /dev/null @@ -1,5 +0,0 @@ -msgfmt -o locale\fr_FR\LC_MESSAGES\Studs.mo locale\fr_FR\LC_MESSAGES\Studs.po -msgfmt -o locale\es_ES\LC_MESSAGES\Studs.mo locale\es_ES\LC_MESSAGES\Studs.po -msgfmt -o locale\de_DE\LC_MESSAGES\Studs.mo locale\de_DE\LC_MESSAGES\Studs.po -msgfmt -o locale\en_GB\LC_MESSAGES\Studs.mo locale\en_GB\LC_MESSAGES\Studs.po -pause \ No newline at end of file diff --git a/tpl/create_poll.tpl b/tpl/create_poll.tpl index 59353e3..61fc3d9 100644 --- a/tpl/create_poll.tpl +++ b/tpl/create_poll.tpl @@ -329,7 +329,6 @@

-