Browse files

updated htp status code generation

  • Loading branch information...
1 parent 0881b8b commit d35336f0d32248308e06fe24f0d469ceab1f8a06 @mryand mryand committed with natepixel Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 reason_4.0/lib/core/popups/image_popup.php
View
2 reason_4.0/lib/core/popups/image_popup.php
@@ -32,7 +32,7 @@
}
if( empty($id ) OR !$image->get_values() OR ($image->get_value( 'type' ) != id_of( 'image' )) OR ($image->get_value('state') != 'Live' ) )
{
- header('HTTP/1.0 404 Not Found');
+ http_response_code(404);
$title = 'No image found';
if(!empty($_SERVER['HTTP_REFERER']) && !empty($id) ) // only trigger an error if there is a referer (e.g. we can do something about it)
{

0 comments on commit d35336f

Please sign in to comment.