Changeset 1288 for trunk/category.php


Ignore:
Timestamp:
04/28/06 07:12:25 (14 years ago)
Author:
rvelices
Message:

merge -r1287 from branch-1_6 to trunk
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
  • trunk/category.php

    r1110 r1288  
    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.