From 8f5cbbd6c821b1bafef3931bc91c3e6e3cfb78bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Thu, 28 Feb 2013 14:09:46 +0100 Subject: [PATCH] MDL-38261 Add a new file preview mode for bigger thumbnails --- lib/filestorage/file_storage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/filestorage/file_storage.php b/lib/filestorage/file_storage.php index 8a4043160f1..acbd0cbec67 100644 --- a/lib/filestorage/file_storage.php +++ b/lib/filestorage/file_storage.php @@ -334,6 +334,9 @@ class file_storage { } else if ($mode === 'thumb') { $data = generate_image_thumbnail($tmpfilepath, 90, 90); + } else if ($mode === 'bigthumb') { + $data = generate_image_thumbnail($tmpfilepath, 250, 250); + } else { throw new file_exception('storedfileproblem', 'Invalid preview mode requested'); }