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:
parent
d6d4d3ed3a
commit
dbf9711e91
1 changed files with 8 additions and 0 deletions
8
boot.php
8
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'] = '';
|
||||
|
||||
|
|
Loading…
Reference in a new issue