Merge branch 'MDL-60819-34' of https://github.com/snake/moodle into MOODLE_34_STABLE

This commit is contained in:
Andrew Nicols
2018-06-12 09:27: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;
}