Ignore:
Timestamp:
Apr 28, 2006, 7:11:46 AM (18 years ago)
Author:
rvelices
Message:

bug 349: Nicer display messages instead of "die" when urls cannot be
solved (also set 404 status code for bots)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/section_init.inc.php

    r1228 r1287  
    198198  if ( empty($page['tags']) )
    199199  {
    200     die('Fatal: no existing tag');
     200    page_not_found('Requested tag does not exist', get_root_url().'tags.php' );
    201201  }
    202202}
     
    317317  {
    318318    $result = get_cat_info($page['category']);
     319    if (empty($result))
     320    {
     321      page_not_found('Requested category does not exist' );
     322    }
    319323
    320324    $page = array_merge(
Note: See TracChangeset for help on using the changeset viewer.