From 1de8f6dd3775278888199c6a0dce4f72863cd930 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Fri, 22 Jun 2018 11:25:28 +0200 Subject: Fix webroot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/accessibility/css/fontdyslexic.scss | 7 +++++++ apps/accessibility/lib/Controller/AccessibilityController.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'apps') 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 @@ -5,6 +5,13 @@ src: url('../fonts/OpenDyslexic-Regular.woff') format('woff'); } +@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; 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']); -- cgit v1.2.3