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)

This commit is contained in:
Friendika 2011-11-09 01:54:52 -08:00
parent d6d4d3ed3a
commit dbf9711e91
1 changed files with 8 additions and 0 deletions

View File

@ -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'] = '';