Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/documentserver_community.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller/StaticController.php')
-rw-r--r--lib/Controller/StaticController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Controller/StaticController.php b/lib/Controller/StaticController.php
index 3c0f17e..38af7d7 100644
--- a/lib/Controller/StaticController.php
+++ b/lib/Controller/StaticController.php
@@ -66,6 +66,9 @@ class StaticController extends Controller {
throw new ForbiddenException();
}
+ // use english images for all help pages to save space
+ $path = preg_replace("|resources/help/\w+/images|", "resources/help/en/images", $path);
+
$localPath = __DIR__ . '/../../3rdparty/onlyoffice/documentserver/' . $path;
return $this->createFileResponse($localPath);