aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2017-01-25 11:45:36 +0100
committerGitHub <noreply@github.com>2017-01-25 11:45:36 +0100
commitf469b3e9587e9eae2cce924241f90baa1da30b31 (patch)
treec60f89505b9c37873444e0e31eea37ab90df950b
parent10a55e6006a2d9c2635370cb3d3f48273db45968 (diff)
parent46ef0f832df60be0a608d2cf770a06f4e26f1200 (diff)
downloadnextcloud-server-f469b3e9587e9eae2cce924241f90baa1da30b31.tar.gz
nextcloud-server-f469b3e9587e9eae2cce924241f90baa1da30b31.zip
Merge pull request #3223 from nextcloud/fix-public-page-style
Fix public page style
-rw-r--r--lib/private/TemplateLayout.php2
1 files changed, 1 insertions, 1 deletions
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);