forked from Cavemanon/cavepaintings
Changing files to use the $page->add_http_header() method instead.
This commit is contained in:
@@ -283,7 +283,8 @@ class Upload implements Extension {
|
||||
if($event->image_id == -1) {
|
||||
throw new UploadException("File type not recognised");
|
||||
}
|
||||
header("X-Shimmie-Image-ID: ".int_escape($event->image_id));
|
||||
//header("X-Shimmie-Image-ID: ".int_escape($event->image_id));
|
||||
$page->add_http_header("X-Shimmie-Image-ID: ".int_escape($event->image_id));
|
||||
}
|
||||
catch(UploadException $ex) {
|
||||
$this->theme->display_upload_error($page, "Error with ".html_escape($file['name']),
|
||||
|
Reference in New Issue
Block a user