Skip to content

Commit

Permalink
Merge pull request #4 from pdir/contao5
Browse files Browse the repository at this point in the history
Contao5
  • Loading branch information
MDevster authored Sep 2, 2022
2 parents 32022e0 + 218670a commit 324d896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contao/templates/backend/be_th_check_domain.html5
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<?php endif; ?>
<form action="contao?do=thLicence&act=checkDomain&popup=1" id="tl_theme" class="tl_form tl_edit_form" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="FORM_SUBMIT" value="thLicence">
<input type="hidden" name="REQUEST_TOKEN" value="<?= REQUEST_TOKEN ?>">
<input type="hidden" name="REQUEST_TOKEN" value="<?= $this->requestToken ?>">
<input type="hidden" name="theme" value="<?= $this->theme ?>">
<input type="hidden" name="shortCode" value="<?= $this->shortCode ?>">
<div class="clr w50 widget">
Expand Down
2 changes: 2 additions & 0 deletions src/Backend/Licence.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Contao\Environment;
use Contao\Input;
use Contao\ThemeModel;
use Contao\System;

class Licence extends BackendModule
{
Expand All @@ -39,6 +40,7 @@ protected function compile()
$this->Template->shortCode = Input::get('shortCode') ? : Input::post('shortCode');
$this->Template->theme = Input::get('theme');
$this->Template->message = null;
$this->Template->requestToken = System::getContainer()->get('contao.csrf.token_manager')->getDefaultTokenValue();

switch (Input::get('act')) {
case 'checkDomain':
Expand Down

0 comments on commit 324d896

Please sign in to comment.