summaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-02-01 17:57:19 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-02-01 18:03:51 +0100
commit2c9d7eeb763d2f907eea8234f6c60a829a5d39f7 (patch)
tree1dc6e71e33e3e06277e97b99a12531acf2af7ef7 /lib/private/TemplateLayout.php
parent1952560ac75007f615fc5c7e1aaabe4799fe6aa3 (diff)
downloadnextcloud-server-2c9d7eeb763d2f907eea8234f6c60a829a5d39f7.tar.gz
nextcloud-server-2c9d7eeb763d2f907eea8234f6c60a829a5d39f7.zip
Fix public page css fallback loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 7ded109f76b..19fc9462185 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -164,11 +164,15 @@ 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()
- && strpos(\OC::$server->getRequest()->getRequestUri(), \OC::$server->getURLGenerator()->linkToRoute('core.login.tryLogin')) !== 0) {
+ && !preg_match('/^\/login/', \OC::$server->getRequest()->getPathInfo())) {
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
} else {
+ // If we ignore the scss compiler,
+ // we need to load the guest css fallback
+ \OC_Util::addStyle('guest');
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles, false);
}
+
$this->assign('cssfiles', array());
$this->assign('printcssfiles', []);
$this->assign('versionHash', self::$versionHash);