This function needs the global $config.
This commit is contained in:
parent
e6e9aced1c
commit
9c8da62ba0
@ -172,6 +172,8 @@ class ImageIO extends SimpleExtension {
|
||||
|
||||
public function onImageAdminBlockBuilding($event) {
|
||||
global $user;
|
||||
global $config;
|
||||
|
||||
if($user->is_admin()) {
|
||||
$event->add_part($this->theme->get_deleter_html($event->image->id));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user