aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-06-23 22:00:22 +0200
committerGitHub <noreply@github.com>2020-06-23 22:00:22 +0200
commita29359a7267572d1b8ef2bcf34464b02a6aba9da (patch)
tree21b6e6d692eb6db00eb3813786bfab9807ecafeb
parent2651dfaf159f49107940ce1653289554887bd302 (diff)
parent220423e0a503c1e4cabf90346f4d40e707e8f415 (diff)
downloadnextcloud-server-a29359a7267572d1b8ef2bcf34464b02a6aba9da.tar.gz
nextcloud-server-a29359a7267572d1b8ef2bcf34464b02a6aba9da.zip
Merge pull request #21545 from nextcloud/bugfix/noid/fix-dark-theme-for-guests
Fix dark mode for guests
-rw-r--r--apps/accessibility/lib/AppInfo/Application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/accessibility/lib/AppInfo/Application.php b/apps/accessibility/lib/AppInfo/Application.php
index 9b79cadb4b6..6d583af07f4 100644
--- a/apps/accessibility/lib/AppInfo/Application.php
+++ b/apps/accessibility/lib/AppInfo/Application.php
@@ -82,7 +82,7 @@ class Application extends App implements IBootstrap {
$userValues = ['dark'];
$hash = md5(implode('-', $userValues));
- $linkToCSS = $this->urlGenerator->linkToRoute(self::APP_NAME . '.accessibility.getCss', ['md5' => $hash]);
+ $linkToCSS = $urlGenerator->linkToRoute(self::APP_ID . '.accessibility.getCss', ['md5' => $hash]);
\OCP\Util::addHeader('link', ['rel' => 'stylesheet', 'media' => '(prefers-color-scheme: dark)', 'href' => $linkToCSS]);
}
}