From dbf9711e910d10309bdde61340420474586f103d Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 9 Nov 2011 01:54:52 -0800 Subject: 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) --- boot.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'boot.php') 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'] = ''; -- cgit v1.2.3 From 7fd54ad51f3328d2eb371b51a1e276b346da6d4f Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 9 Nov 2011 16:37:33 -0800 Subject: revup --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 58a991176..09a66c02c 100644 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDIKA_PLATFORM', 'Friendica'); -define ( 'FRIENDIKA_VERSION', '2.3.1159' ); +define ( 'FRIENDIKA_VERSION', '2.3.1160' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DB_UPDATE_VERSION', 1103 ); -- cgit v1.2.3