diff options
author | Friendika <info@friendika.com> | 2011-11-09 01:54:52 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-11-09 01:54:52 -0800 |
commit | dbf9711e910d10309bdde61340420474586f103d (patch) | |
tree | 496ad53deee3f8694804998d407cb01946d6e90a /boot.php | |
parent | d6d4d3ed3a02c844a7ff0c48411f8b014cff3ee9 (diff) | |
download | volse-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)
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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'] = ''; |