aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-02 12:50:19 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-02 14:20:13 +0100
commitc29bf244401efd87243346f5f17e0abe242bc37b (patch)
tree056f7bc098bb96885588ec58f2802ea4b3eeb71f /lib/private/TemplateLayout.php
parent39461a2e096ad9d149f134fd76cd51dd046e76bf (diff)
downloadnextcloud-server-c29bf244401efd87243346f5f17e0abe242bc37b.tar.gz
nextcloud-server-c29bf244401efd87243346f5f17e0abe242bc37b.zip
Load guest css on any guest and error page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 5e6d432c805..3acdae0e395 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -178,7 +178,9 @@ class TemplateLayout extends \OC_Template {
if(\OC::$server->getSystemConfig()->getValue('installed', false)
&& !\OCP\Util::needUpgrade()
&& $pathInfo !== ''
- && !preg_match('/^\/login/', $pathInfo)) {
+ && !preg_match('/^\/login/', $pathInfo)
+ && $renderAs !== 'error' && $renderAs !== 'guest'
+ ) {
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
} else {
// If we ignore the scss compiler,