From 46ef0f832df60be0a608d2cf770a06f4e26f1200 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 23 Jan 2017 12:42:59 -0600 Subject: [PATCH] Fix public page style * checks if the user is on the login page or not instead of check if the user is logged in * fixes #3207 Signed-off-by: Morris Jobke --- lib/private/TemplateLayout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index 9b425bc0568..7ded109f76b 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -164,7 +164,7 @@ class TemplateLayout extends \OC_Template { // Do not load scss for update, errors, installation or login page if(\OC::$server->getSystemConfig()->getValue('installed', false) && !\OCP\Util::needUpgrade() - && \OC_User::isLoggedIn()) { + && strpos(\OC::$server->getRequest()->getRequestUri(), \OC::$server->getURLGenerator()->linkToRoute('core.login.tryLogin')) !== 0) { $cssFiles = self::findStylesheetFiles(\OC_Util::$styles); } else { $cssFiles = self::findStylesheetFiles(\OC_Util::$styles, false); -- 2.39.5