Fix error message on untrusted domain error page
Fixes #5347 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
73b293fa6a
commit
111844e7b1
|
@ -862,7 +862,7 @@ class Server extends ServerContainer implements IServerContainer {
|
||||||
$classExists = false;
|
$classExists = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($classExists && $c->getConfig()->getSystemValue('installed', false) && $c->getAppManager()->isInstalled('theming')) {
|
if ($classExists && $c->getConfig()->getSystemValue('installed', false) && $c->getAppManager()->isInstalled('theming') && $c->getTrustedDomainHelper()->isTrustedDomain($c->getRequest()->getInsecureServerHost())) {
|
||||||
return new ThemingDefaults(
|
return new ThemingDefaults(
|
||||||
$c->getConfig(),
|
$c->getConfig(),
|
||||||
$c->getL10N('theming'),
|
$c->getL10N('theming'),
|
||||||
|
|
Loading…
Reference in New Issue