diff options
author | Joas Schilling <coding@schilljs.com> | 2023-03-08 09:51:54 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-03-08 09:54:25 +0100 |
commit | 726cbe679a0ac4c01361cd04dedd9aaefebe43bd (patch) | |
tree | 48da8cbf624dca96cf5a7d197207c174ddc1f9b0 /lib/Settings | |
parent | 0993747b8cbd8d58e277ba4b91c541527723ac0e (diff) |
fix(settings): Move size math to the frontend for better strings
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Settings')
-rw-r--r-- | lib/Settings/Admin/AdminSettings.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Settings/Admin/AdminSettings.php b/lib/Settings/Admin/AdminSettings.php index e85ced92c..6e0360b9a 100644 --- a/lib/Settings/Admin/AdminSettings.php +++ b/lib/Settings/Admin/AdminSettings.php @@ -474,11 +474,10 @@ class AdminSettings implements ISettings { } protected function initRecording(): void { - $uploadLimit = \OCP\Util::uploadLimit(); $this->initialState->provideInitialState('recording_servers', [ 'servers' => $this->talkConfig->getRecordingServers(), 'secret' => $this->talkConfig->getRecordingSecret(), - 'uploadLimit' => $uploadLimit !== 0 ? $uploadLimit / 1024 / 1024 : 0, + 'uploadLimit' => Util::uploadLimit(), ]); } |