Remove unnneded code, related to ca00a9b150

This commit is contained in:
Flavio Copes
2017-01-12 19:55:43 +01:00
parent ca00a9b150
commit 6a1ee7481a

View File

@@ -805,11 +805,6 @@ class AdminBaseController
$type = $uri->param('type');
$field = $uri->param('field');
$event = $this->grav->fireEvent('onAdminCanSave', new Event(['controller' => &$this]));
if (isset($event['can_save']) && $event['can_save'] == false) {
return false;
}
$this->taskRemoveMedia();
if ($type == 'pages') {