Merge branch 'MDL-60819-master' of https://github.com/snake/moodle

This commit is contained in:
Andrew Nicols
2018-06-12 08:58:49 +08:00
+3
View File
@@ -1063,6 +1063,9 @@ class stored_file {
* @return string|bool false if a problem occurs, the thumbnail image data otherwise
*/
public function generate_image_thumbnail($width, $height) {
global $CFG;
require_once($CFG->libdir . '/gdlib.php');
if (empty($width) or empty($height)) {
return false;
}