Skip to content

Commit

Permalink
FIX clear requirements when fetching page content
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr authored May 6, 2021
1 parent 587b8bd commit 76cf2e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Service/AlgoliaPageCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public function getMainContent(): string
// they would be for the frontend
Config::nest();
SSViewer::set_themes(SSViewer::config()->get('themes'));


Requirements::clear();
$controller = ModelAsController::controller_for($this->item);
$page = '';
$output = '';
Expand All @@ -80,7 +81,7 @@ public function getMainContent(): string
} catch (Exception $e) {
Injector::inst()->create(LoggerInterface::class)->error($e);
}

Requirements::restore();
Config::unnest();

return $output;
Expand Down

0 comments on commit 76cf2e2

Please sign in to comment.