aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-11-14 15:38:26 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-11-14 15:38:26 +0000
commit67bee38a0b80d663a637d33a52c3dcfbed89241f (patch)
tree27f2527a6b8f6b37eafe164be2d7c004e71b47ed
parent25b6bf055629d66b06b064a8cf09080f164e2c6d (diff)
use relsize, fixes #3463
Closes #3463 Merge request studip/studip!2360
-rw-r--r--lib/filesystem/FileArchiveManager.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/filesystem/FileArchiveManager.class.php b/lib/filesystem/FileArchiveManager.class.php
index 498bb58..7239bd4 100644
--- a/lib/filesystem/FileArchiveManager.class.php
+++ b/lib/filesystem/FileArchiveManager.class.php
@@ -111,8 +111,8 @@ class FileArchiveManager
if (file_exists($archive->filename) && filesize($archive->filename) > $archive_max_size) {
throw new FileArchiveManagerException(
sprintf(
- _('Das ZIP-Archiv ist zu groß! Die maximal erlaubte Größe ist %d bytes!'),
- $archive_max_size
+ _('Das ZIP-Archiv ist zu groß! Die maximal erlaubte Größe ist %s!'),
+ relsize($archive_max_size)
)
);
}
@@ -149,8 +149,8 @@ class FileArchiveManager
if (file_exists($archive->filename) && filesize($archive->filename) > $archive_max_size) {
throw new FileArchiveManagerException(
sprintf(
- _('Das ZIP-Archiv ist zu groß! Die maximal erlaubte Größe ist %d bytes!'),
- $archive_max_size
+ _('Das ZIP-Archiv ist zu groß! Die maximal erlaubte Größe ist %s!'),
+ relsize($archive_max_size)
)
);
}
@@ -183,8 +183,8 @@ class FileArchiveManager
unlink($archive->filename);
throw new FileArchiveManagerException(
sprintf(
- _('Das ZIP-Archiv ist zu groß! Die maximal erlaubte Größe ist %d bytes!'),
- $archive_max_size
+ _('Das ZIP-Archiv ist zu groß! Die maximal erlaubte Größe ist %s!'),
+ relsize($archive_max_size)
)
);
}