diff options
author | Robin Appelman <robin@icewind.nl> | 2022-02-08 18:28:41 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-11-09 20:15:48 +0300 |
commit | 72c1bd3867206974ab1df9559baf9731aaf6daa6 (patch) | |
tree | ca05bddeec30cb05c100db57bac610ca7adf7b1f | |
parent | 9ff955d28ad532efb739f782599688f8d15e36e0 (diff) |
remove translated help images to save space
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | lib/Controller/StaticController.php | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -24,6 +24,7 @@ clean: rm -rf oo-extract rm -f onlyoffice-documentserver.x86_64.rpm rm -rf 3rdparty/onlyoffice/documentserver/server/{Common,DocService} + rm -rf 3rdparty/onlyoffice/documentserver/web-apps/apps/*/main/resources/help/{de,es,fr,it,ru}/images cd 3rdparty/onlyoffice/documentserver/server/tools && \ ./allfontsgen \ --input="../../core-fonts" \ 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); |