added 'theme' to config containing current theme configuration so now possible to just to {{ config.theme.dropdown_enabled }} #406

This commit is contained in:
Andy Miller
2015-11-01 18:32:55 -07:00
parent 0c729e5b0a
commit 18c1ca3919

View File

@@ -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);
}