aboutsummaryrefslogtreecommitdiffstats
path: root/themes/elegant/themeconf.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'themes/elegant/themeconf.inc.php')
-rw-r--r--themes/elegant/themeconf.inc.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/elegant/themeconf.inc.php b/themes/elegant/themeconf.inc.php
index 55681f290..99f4f0ac8 100644
--- a/themes/elegant/themeconf.inc.php
+++ b/themes/elegant/themeconf.inc.php
@@ -12,4 +12,16 @@ $themeconf = array(
'parent' => 'default',
'local_head' => 'local_head.tpl'
);
+// Need upgrade?
+global $conf;
+include(PHPWG_THEMES_PATH.'elegant/admin/upgrade.inc.php');
+
+add_event_handler('init', 'set_config_values_elegant');
+function set_config_values_elegant()
+{
+ global $conf, $template;
+ $config = unserialize( $conf['elegant'] );
+ $template->assign( 'elegant', $config );
+}
+
?>