]> git.mxchange.org Git - friendica.git/commitdiff
reset theme_info when a profile is loaded (without a theme cookie the default nav...
authorFriendika <info@friendika.com>
Wed, 9 Nov 2011 09:54:52 +0000 (01:54 -0800)
committerFriendika <info@friendika.com>
Wed, 9 Nov 2011 09:54:52 +0000 (01:54 -0800)
boot.php

index af5c2db0b429cea3f52fafb5a9aae29ba1cc5e60..58a991176816ab8fe7d84d984829371860dae24a 100644 (file)
--- 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'] = '';