Skip to content

Commit

Permalink
Merge pull request #67 from FriendsOfREDAXO/addon-boot
Browse files Browse the repository at this point in the history
fix missing $addon
  • Loading branch information
skerbis authored Jan 15, 2023
2 parents fbad107 + 5050566 commit c2b72a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
// stop if Setup is active
if (rex::isSetup()) return;
$req = $_SERVER['REQUEST_URI'];
$addon = rex_addon::get('maintenance');

if (str_contains($req, 'sitemap.xml') === true && str_contains($req, 'secret='.$addon->getConfig('secret'))) {
return;
}
$addon = rex_addon::get('maintenance');
$secret = '';
$responsecode = $addon->getConfig('responsecode');

Expand Down

0 comments on commit c2b72a8

Please sign in to comment.