Skip to content

Commit

Permalink
Initial commit for 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Aug 20, 2024
1 parent 6b62bea commit 8c33c21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Resources/contao/templates/dcfe_general_edit.html5
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@
* @filesource
*/

use Contao\Environment;
use Contao\Message;
use Contao\StringUtil;
use Contao\System;

$requestToken = System::getContainer()->get('contao.csrf.token_manager')->getDefaultTokenValue();
?>
<h2 class="sub_headline"><?= $this->subHeadline; ?></h2>
<?= $this->getMessages() ?>
<?= Message::generate() ?>

<form method="post"
action="<?= StringUtil::ampersand(\Environment::get('request')) ?>"
action="<?= StringUtil::ampersand(Environment::get('request')) ?>"
id="<?= $this->table ?>"
enctype="<?= $this->enctype ?>"
>
Expand Down
4 changes: 2 additions & 2 deletions src/Widgets/UploadOnSteroids.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use Contao\Dbafs;
use Contao\File;
use Contao\FilesModel;
use Contao\FormFileUpload;
use Contao\FormUpload;
use Contao\Input;
use Contao\StringUtil;
use Contao\System;
Expand Down Expand Up @@ -71,7 +71,7 @@
* @psalm-suppress UndefinedThisPropertyFetch
* @psalm-suppress UndefinedThisPropertyAssignment
*/
class UploadOnSteroids extends FormFileUpload
class UploadOnSteroids extends FormUpload
{
/**
* The submit indicator.
Expand Down

0 comments on commit 8c33c21

Please sign in to comment.