mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
feature #379, multiple format, no browser cache
No need random string in URL to avoid browser cache, coding tip by @modus75
This commit is contained in:
@@ -677,7 +677,7 @@ SELECT *
|
||||
foreach ($formats as &$format)
|
||||
{
|
||||
$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['download_url'].= '&download';
|
||||
|
||||
$format['label'] = strtoupper($format['ext']);
|
||||
$lang_key = 'format '.strtoupper($format['ext']);
|
||||
|
||||
Reference in New Issue
Block a user