Changeset 663


Ignore:
Timestamp:
Dec 28, 2004, 8:33:52 PM (19 years ago)
Author:
plg
Message:
  • bug fixed : if a category is not a numeric category, no title was displayed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/category.php

    r657 r663  
    103103$template->set_filenames( array('category'=>'category.tpl') );
    104104//-------------------------------------------------------------- category title
    105 if (!isset($page['cat']))
    106 {
    107   $template_title = $lang['no_category'];
    108 }
    109 else
     105if (isset($page['cat']) and is_numeric($page['cat']))
    110106{
    111107  $template_title = get_cat_display_name($page['cat_name'],
    112108                                         'category.php?cat=',
    113109                                         false);
     110}
     111else
     112{
     113  $template_title = $page['title'];
    114114}
    115115
Note: See TracChangeset for help on using the changeset viewer.