Merge pull request #2755 from rabuzarus/theme-init-identity

fix theme loading
pull/2759/head^2
Tobias Diekershoff 2016-08-31 15:53:42 +02:00 zatwierdzone przez GitHub
commit c62a28d95e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -71,8 +71,8 @@ function profile_load(&$a, $nickname, $profile = 0, $profiledata = array()) {
$a->page['title'] = $a->profile['name'] . " @ " . $a->config['sitename'];
// if (!$profiledata)
// $_SESSION['theme'] = $a->profile['theme'];
if (!$profiledata && !get_pconfig(local_user(),'system','always_my_theme'))
$_SESSION['theme'] = $a->profile['theme'];
$_SESSION['mobile-theme'] = $a->profile['mobile-theme'];