MDL-38261 Add a new file preview mode for bigger thumbnails
authorDavid Mudrák <david@moodle.com>
Thu, 28 Feb 2013 13:09:46 +0000 (14:09 +0100)
committerDavid Mudrák <david@moodle.com>
Thu, 28 Feb 2013 17:53:37 +0000 (18:53 +0100)
lib/filestorage/file_storage.php

index 8a40431..acbd0cb 100644 (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');
         }