Skip to content
Snippets Groups Projects
Commit 67bee38a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

use relsize, fixes #3463

Closes #3463

Merge request studip/studip!2360
parent 25b6bf05
No related branches found
No related tags found
No related merge requests found
......@@ -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)
)
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment