Fix public page style
* checks if the user is on the login page or not instead of check if the user is logged in * fixes #3207 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
d80bc6c72b
commit
46ef0f832d
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ 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()
|
||||
&& \OC_User::isLoggedIn()) {
|
||||
&& strpos(\OC::$server->getRequest()->getRequestUri(), \OC::$server->getURLGenerator()->linkToRoute('core.login.tryLogin')) !== 0) {
|
||||
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles);
|
||||
} else {
|
||||
$cssFiles = self::findStylesheetFiles(\OC_Util::$styles, false);
|
||||
|
|
Loading…
Reference in a new issue