Changing files to use the $page->add_http_header() method instead.

This commit is contained in:
green-ponies (jgen)
2011-08-30 16:38:46 -04:00
parent bd31bcd79a
commit c30c898c4e
9 changed files with 26 additions and 24 deletions

View File

@@ -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']),