Permalink
Browse files

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

  • Loading branch information...
1 parent cce0d9a commit 8f5cbbd6c821b1bafef3931bc91c3e6e3cfb78bd @mudrd8mz mudrd8mz committed Feb 28, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/filestorage/file_storage.php
View
3 lib/filestorage/file_storage.php
@@ -334,6 +334,9 @@ protected function create_imagefile_preview(stored_file $file, $mode) {
} 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');
}

0 comments on commit 8f5cbbd

Please sign in to comment.