nettoyage de printemps

clean type test
This commit is contained in:
m 2018-04-19 09:00:52 +02:00 committed by Thomas Citharel
parent 2627dc2ae6
commit 3330d28f29
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
4 changed files with 3 additions and 10 deletions

View File

@ -38,7 +38,8 @@ return PhpCsFixer\Config::create()
->exclude([
'vendor',
'var',
'web'
'web',
'tpl_c',
])
->in(__DIR__)
)

View File

@ -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 {

View File

@ -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

View File

@ -329,7 +329,6 @@
</div>
<p class="text-right">
<input type="hidden" name="type" value="$poll_type"/>
<button name="{$goToStep2}" value="{$poll_type}" type="submit"
class="btn btn-success">{__('Step 1', 'Go to step 2')}</button>
</p>