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/category.php

    r1110 r1287  
    4040    $url_params['section'] = 'categories';
    4141    $url_params['category'] = $_GET['cat'];
     42    $result = get_cat_info($url_params['category']);
     43    if ( !empty($result) )
     44      $url_params['cat_name'] = $result['name'];
    4245  }
    4346  elseif ( in_array($_GET['cat'],
     
    4851    $url_params['section'] = $_GET['cat'];
    4952  }
     53  else
     54  {
     55    page_not_found('');
     56  }
    5057}
    5158
Note: See TracChangeset for help on using the changeset viewer.