diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-02-07 22:48:58 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-03-01 20:54:43 +0100 |
commit | 9f96a47125c47ec6c5695fc263d86dadea62aabe (patch) | |
tree | 666fd7f6985d2dd3babb6a1bb9fbee768d0672b3 /core/register_command.php | |
parent | ee0678002994a9e9a29b6483bb2b55f0f6f205be (diff) | |
download | nextcloud-server-9f96a47125c47ec6c5695fc263d86dadea62aabe.tar.gz nextcloud-server-9f96a47125c47ec6c5695fc263d86dadea62aabe.zip |
Add OCC command to reset rendered texts
The command is meant to be used when the fonts used to render texts
("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf")
are changed (for example, to add support for other scripts). The avatar
and text file previews will be removed, so they will be generated again
with the updated font when needed.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/register_command.php')
-rw-r--r-- | core/register_command.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/register_command.php b/core/register_command.php index 605c545554a..1c8c62d2eab 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -168,6 +168,7 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) { )); $application->add(\OC::$server->query(\OC\Core\Command\Preview\Repair::class)); + $application->add(\OC::$server->query(\OC\Core\Command\Preview\ResetRenderedTexts::class)); $application->add(new OC\Core\Command\User\Add(\OC::$server->getUserManager(), \OC::$server->getGroupManager())); $application->add(new OC\Core\Command\User\Delete(\OC::$server->getUserManager())); |