Need to pull in the global $page variable for this method.

This commit is contained in:
jgen 2014-04-25 17:39:06 -04:00
parent 1e15c5e47a
commit 3a1197256a

View File

@ -59,7 +59,8 @@ class ResizeImage extends Extension {
}
public function onDataUpload(DataUploadEvent $event) {
global $config;
global $config, $page;
$image_obj = Image::by_id($event->image_id);
if($config->get_bool("resize_upload") == true && ($image_obj->ext == "jpg" || $image_obj->ext == "png" || $image_obj->ext == "gif")){