updated sizes

This commit is contained in:
2023-03-13 21:27:53 +10:00
parent 9be9f4329b
commit c2a0f04cc0
3 changed files with 16 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ if (isset($_GET['url'])) {
if ($filepath !== false && strlen($filepath) > 0 && strpos($_GET['url'], 'uploads/') === 0 && is_file($filepath)) {
if(isset($_GET['size'])) {
$availableSizes = ['thumb', 'medium', 'large']; // we ignore full as its the original file
$availableSizes = ['thumb', 'small', 'medium', 'large', 'xlarge']; // we ignore full as its the original file
$requestedSize = strtolower($_GET['size']);
$requestedSizeIndex = array_search($requestedSize, $availableSizes);