forked from Cavemanon/cavepaintings
use HTTP status codes with error messages
This commit is contained in:
@@ -141,7 +141,7 @@ class Upload extends Extension {
|
||||
|
||||
$image_old = Image::by_id($image_id);
|
||||
if(is_null($image_old)) {
|
||||
$this->theme->display_error($page, "Image not found", "No image in the database has the ID #$image_id");
|
||||
$this->theme->display_error(404, "Image not found", "No image in the database has the ID #$image_id");
|
||||
}
|
||||
|
||||
if(count($_FILES) + count($_POST) > 0) {
|
||||
|
Reference in New Issue
Block a user