Skip to content

Commit

Permalink
Fixes requesttoken in filetree widget
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Aug 16, 2024
1 parent 8695521 commit 8148bcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resources/contao/templates/widget_filetree.html5
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

use Contao\StringUtil;
use Contao\System;

$requestToken = \System::getContainer()->get('contao.csrf.token_manager')->getDefaultTokenValue();
$requestToken = System::getContainer()->get('contao.csrf.token_manager')->getDefaultTokenValue();
?>
<div>
<input type="hidden" name="<?= $this->name ?>" id="ctrl_<?= $this->id ?>" value="<?= $this->value ?>">
Expand Down

0 comments on commit 8148bcf

Please sign in to comment.