diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-01-23 12:42:59 -0600 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-01-23 12:42:59 -0600 |
commit | 46ef0f832df60be0a608d2cf770a06f4e26f1200 (patch) | |
tree | 1ec61b33cccdec9f772a3dc0a8dff695d21d31cf /lib/private/TemplateLayout.php | |
parent | d80bc6c72b0bf46f88decbaf63ecf469aa311321 (diff) | |
download | nextcloud-server-46ef0f832df60be0a608d2cf770a06f4e26f1200.tar.gz nextcloud-server-46ef0f832df60be0a608d2cf770a06f4e26f1200.zip |
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 <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r-- | lib/private/TemplateLayout.php | 2 |
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); |