Skip to content

Commit

Permalink
fix $config undefined when using custom template
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerjoss committed Nov 11, 2021
1 parent ccc3aa9 commit d0d3941
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fullcalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function onPageInitialized(Event $event)
/** @var Page */
$page = $event['page'];

$config = $this->config->get('plugins.fullcalendar'); // see https://github.com/wernerjoss/grav-plugin-fullcalendar/issues/38
if (($page->template() === 'calendar') || ($config['useCustomPageTemplate'])) {
$this->addAssets();
}
Expand Down

0 comments on commit d0d3941

Please sign in to comment.