]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix dark mode for guests 21545/head
authorJoas Schilling <coding@schilljs.com>
Tue, 23 Jun 2020 17:54:41 +0000 (19:54 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 23 Jun 2020 17:54:41 +0000 (19:54 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/accessibility/lib/AppInfo/Application.php

index 9b79cadb4b6e8a1ddcad612cb74051626c53ac73..6d583af07f41ee63863ea663c631ddb889947026 100644 (file)
@@ -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]);
                }
        }