Browse Source

Load guest css on any guest and error page

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/8155/head
Julius Härtl 8 years ago
parent
commit
c29bf24440
No known key found for this signature in database GPG Key ID: 4C614C6ED2CDE6DF
  1. 4
      lib/private/TemplateLayout.php

4
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,

Loading…
Cancel
Save