summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-05 12:14:09 +0100
committerGitHub <noreply@github.com>2018-02-05 12:14:09 +0100
commit0225ea1b9ae59182d93edcc7fc9c09a75914d56b (patch)
tree7ac5c141945fea6953af2ab0375c4b2948e05dab /lib
parent30d6fd7f01e0fb47c23c3e12ca17dc2ab8d4c287 (diff)
parent1ac352de6c047db8f9b9e58c4eec308bbccae19d (diff)
downloadnextcloud-server-0225ea1b9ae59182d93edcc7fc9c09a75914d56b.tar.gz
nextcloud-server-0225ea1b9ae59182d93edcc7fc9c09a75914d56b.zip
Merge pull request #8155 from nextcloud/use-guest-css
Fix styling issues of guest pages
Diffstat (limited to 'lib')
-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,