Changeset 1643 for trunk/action.php


Ignore:
Timestamp:
Dec 8, 2006, 1:12:44 AM (17 years ago)
Author:
rvelices
Message:
  • new function set_status_header (set http status code)
  • correction on recent/recent_by_child icons
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/action.php

    r1616 r1643  
    5656function do_error( $code, $str )
    5757{
    58   header("HTTP/1.1 $code ");
    59   header("Status: $code ");
     58  set_status_header( $code );
    6059  echo $str ;
    6160  exit();
     
    149148  if ( isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) )
    150149  {
    151     header("HTTP/1.1 304 Not modified ");
    152     header("Status: 304 Not modified");
     150    set_status_header(304);
    153151    foreach ($http_headers as $header)
    154152    {
Note: See TracChangeset for help on using the changeset viewer.