From: rabuzarus <rabuzarus@t-online.de>
Date: Fri, 25 May 2018 06:44:01 +0000 (+0200)
Subject: Bugfix: compute the current theme each time we want to know which theme is beeing... 
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8174bfeb2be2c7b72be409a0a548eec85820bec6;p=friendica.git

Bugfix: compute the current theme each time we want to know which theme is beeing used
---

diff --git a/src/App.php b/src/App.php
index 655ea84f00..f93ae2b9f8 100644
--- a/src/App.php
+++ b/src/App.php
@@ -1095,9 +1095,10 @@ class App
 			return '';
 		}
 
-		if (!$this->current_theme) {
-			$this->computeCurrentTheme();
-		}
+		//// @TODO Compute the current theme only once (this behavior has
+		/// already been implemented, but it didn' work well -
+		/// https://github.com/friendica/friendica/issues/5092)
+		$this->computeCurrentTheme();
 
 		return $this->current_theme;
 	}