aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-09 01:54:52 -0800
committerFriendika <info@friendika.com>2011-11-09 01:54:52 -0800
commitdbf9711e910d10309bdde61340420474586f103d (patch)
tree496ad53deee3f8694804998d407cb01946d6e90a
parentd6d4d3ed3a02c844a7ff0c48411f8b014cff3ee9 (diff)
downloadvolse-hubzilla-dbf9711e910d10309bdde61340420474586f103d.tar.gz
volse-hubzilla-dbf9711e910d10309bdde61340420474586f103d.tar.bz2
volse-hubzilla-dbf9711e910d10309bdde61340420474586f103d.zip
reset theme_info when a profile is loaded (without a theme cookie the default nav template over-rides the nav template for the theme that is loaded afterward)
-rw-r--r--boot.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index af5c2db0b..58a991176 100644
--- a/boot.php
+++ b/boot.php
@@ -823,6 +823,14 @@ function profile_load(&$a, $nickname, $profile = 0) {
$a->page['title'] = $a->profile['name'] . " @ " . $a->config['sitename'];
$_SESSION['theme'] = $a->profile['theme'];
+ /**
+ * load/reload current theme info
+ */
+ $theme_info_file = "view/theme/".current_theme()."/theme.php";
+ if (file_exists($theme_info_file)){
+ require_once($theme_info_file);
+ }
+
if(! (x($a->page,'aside')))
$a->page['aside'] = '';