Need to pull in the global $page variable for this method.
This commit is contained in:
parent
1e15c5e47a
commit
3a1197256a
@ -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")){
|
||||
|
Loading…
x
Reference in New Issue
Block a user