Skip to content

Commit

Permalink
redirect after media upload error
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-peugnet committed Oct 11, 2024
1 parent 3de8c27 commit c554e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/class/Controllermedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ public function upload()
$fontfacer = new Servicefont($this->mediamanager);
$fontfacer->writecss();
}
$this->redirect($this->generate('media') . $_POST['route']);
} catch (RuntimeException $e) {
Model::sendflashmessage($e->getMessage(), Model::FLASH_ERROR);
}
}
$this->redirect($this->generate('media') . $_POST['route']);
} else {
http_response_code(403);
$this->showtemplate('forbidden');
Expand Down

0 comments on commit c554e90

Please sign in to comment.