From aedd2cfa6096cab93d32ac828c7d25d7030d29f4 Mon Sep 17 00:00:00 2001
From: rabuzarus <rabuzarus@t-online.de>
Date: Wed, 31 Aug 2016 13:49:24 +0200
Subject: [PATCH] Update identity.php

---
 include/identity.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/identity.php b/include/identity.php
index 9b75ebccdb..91b31c0784 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -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'];
 
-- 
2.39.5