MDL-38261 Add a new file preview mode for bigger thumbnails

This commit is contained in:
David Mudrák
2013-02-28 18:53:37 +01:00
parent cce0d9a100
commit 8f5cbbd6c8
+3
View File
@@ -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');
}