summaryrefslogtreecommitdiffstats
path: root/apps/accessibility
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-22 11:25:28 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-25 17:12:28 +0200
commit1de8f6dd3775278888199c6a0dce4f72863cd930 (patch)
tree15a9d6fb6c29e03877fa2fa697cf25a33297d037 /apps/accessibility
parent2e08cc958c930cd09a95e2e8e6df5d56ad5fb897 (diff)
downloadnextcloud-server-1de8f6dd3775278888199c6a0dce4f72863cd930.tar.gz
nextcloud-server-1de8f6dd3775278888199c6a0dce4f72863cd930.zip
Fix webroot
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/accessibility')
-rw-r--r--apps/accessibility/css/fontdyslexic.scss7
-rw-r--r--apps/accessibility/lib/Controller/AccessibilityController.php2
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/accessibility/css/fontdyslexic.scss b/apps/accessibility/css/fontdyslexic.scss
index 3bfb7ff2a11..5df9bfb566c 100644
--- a/apps/accessibility/css/fontdyslexic.scss
+++ b/apps/accessibility/css/fontdyslexic.scss
@@ -8,6 +8,13 @@
@font-face {
font-family: 'OpenDyslexic';
font-style: normal;
+ font-weight: normal;
+ src: url('../fonts/OpenDyslexic-Regular.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'OpenDyslexic';
+ font-style: normal;
font-weight: 600;
src: url('../fonts/OpenDyslexic-Bold.woff') format('woff');
}
diff --git a/apps/accessibility/lib/Controller/AccessibilityController.php b/apps/accessibility/lib/Controller/AccessibilityController.php
index c4b010e94f8..ea4de77d7a0 100644
--- a/apps/accessibility/lib/Controller/AccessibilityController.php
+++ b/apps/accessibility/lib/Controller/AccessibilityController.php
@@ -147,7 +147,7 @@ class AccessibilityController extends Controller {
// Rebase all urls
$appWebRoot = substr($this->appRoot, strlen($this->serverRoot) - strlen(\OC::$WEBROOT));
- $css = $this->rebaseUrls($css, $appWebRoot);
+ $css = $this->rebaseUrls($css, $appWebRoot . '/css');
$response = new DataDisplayResponse($css, Http::STATUS_OK, ['Content-Type' => 'text/css']);