summaryrefslogtreecommitdiffstats
path: root/lib/Settings
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-03-08 09:51:54 +0100
committerJoas Schilling <coding@schilljs.com>2023-03-08 09:54:25 +0100
commit726cbe679a0ac4c01361cd04dedd9aaefebe43bd (patch)
tree48da8cbf624dca96cf5a7d197207c174ddc1f9b0 /lib/Settings
parent0993747b8cbd8d58e277ba4b91c541527723ac0e (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.php3
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(),
]);
}