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
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'];
|
$a->page['title'] = $a->profile['name'] . " @ " . $a->config['sitename'];
|
||||||
$_SESSION['theme'] = $a->profile['theme'];
|
$_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')))
|
if(! (x($a->page,'aside')))
|
||||||
$a->page['aside'] = '';
|
$a->page['aside'] = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user