aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--picture.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/picture.php b/picture.php
index f2dfecf0e..093e4b271 100644
--- a/picture.php
+++ b/picture.php
@@ -679,6 +679,13 @@ SELECT *
$format['download_url'] = 'action.php?format='.$format['format_id'];
$format['download_url'].= '&download='.substr(md5(time()), 0, 6); // a random string to avoid browser cache
+ $format['label'] = strtoupper($format['ext']);
+ $lang_key = 'format '.strtoupper($format['ext']);
+ if (isset($lang[$lang_key]))
+ {
+ $format['label'] = $lang[$lang_key];
+ }
+
$format['filesize'] = sprintf('%.1fMB', $format['filesize']/1024);
}
}