Load guest css on any guest and error page

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-02-02 12:50:19 +01:00
parent 39461a2e09
commit c29bf24440
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -178,7 +178,9 @@ class TemplateLayout extends \OC_Template {
if(\OC::$server->getSystemConfig()->getValue('installed', false) if(\OC::$server->getSystemConfig()->getValue('installed', false)
&& !\OCP\Util::needUpgrade() && !\OCP\Util::needUpgrade()
&& $pathInfo !== '' && $pathInfo !== ''
&& !preg_match('/^\/login/', $pathInfo)) { && !preg_match('/^\/login/', $pathInfo)
&& $renderAs !== 'error' && $renderAs !== 'guest'
) {
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles); $cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
} else { } else {
// If we ignore the scss compiler, // If we ignore the scss compiler,