Skip to content

Commit

Permalink
nettoyage de printemps
Browse files Browse the repository at this point in the history
clean type test
  • Loading branch information
m authored and tcitworld committed Apr 19, 2018
1 parent 2627dc2 commit 3330d28
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .php_cs
Expand Up @@ -38,7 +38,8 @@ return PhpCsFixer\Config::create()
->exclude([
'vendor',
'var',
'web'
'web',
'tpl_c',
])
->in(__DIR__)
)
Expand Down
4 changes: 1 addition & 3 deletions create_poll.php
Expand Up @@ -41,9 +41,7 @@
}

// 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 {
Expand Down
5 changes: 0 additions & 5 deletions locale.bat

This file was deleted.

1 change: 0 additions & 1 deletion tpl/create_poll.tpl
Expand Up @@ -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>
Expand Down

0 comments on commit 3330d28

Please sign in to comment.