From 18c1ca3919398199cc554f1106a9d5ae8a705226 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 1 Nov 2015 18:32:55 -0700 Subject: [PATCH] added 'theme' to config containing current theme configuration so now possible to just to `{{ config.theme.dropdown_enabled }}` #406 --- system/src/Grav/Common/Themes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/src/Grav/Common/Themes.php b/system/src/Grav/Common/Themes.php index 1b9051c01..add87d3be 100644 --- a/system/src/Grav/Common/Themes.php +++ b/system/src/Grav/Common/Themes.php @@ -171,6 +171,8 @@ class Themes extends Iterator exit("Theme '$name' does not exist, unable to display page."); } + $this->config->set('theme', $config->get('themes.' . $name)); + if (empty($class)) { $class = new Theme($grav, $config, $name); }