Ignore:
Timestamp:
Apr 8, 2006, 9:40:12 PM (18 years ago)
Author:
rvelices
Message:

fix: sql query on tags when there are no images

fix: cat_name was not passed to make_index_url in category_subcats.inc.php
(subcatify was working)

improvement: added some rel="nofollow"

File:
1 edited

Legend:

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

    r1132 r1134  
    133133      get_thumbnail_src($row['path'], @$row['tn_ext']);
    134134  }
    135  
     135
    136136  if ($conf['subcatify'])
    137137  {
     
    143143
    144144    $template->assign_block_vars('categories', array());
    145    
     145
    146146    foreach ($categories as $category)
    147147    {
     
    153153          'TITLE' => $lang['hint_category'],
    154154          'ICON'  => get_icon(@$category['date_last']),
    155          
     155
    156156          'URL' => make_index_url(
    157157            array(
     
    166166        );
    167167    }
    168  
     168
    169169    $template->assign_var_from_handle('CATEGORIES', 'mainpage_categories');
    170170  }
     
    176176    // current row displayed
    177177    $row_number = 0;
    178    
     178
    179179    foreach ($categories as $category)
    180180    {
     
    186186          'IMAGE_TITLE' => $lang['hint_category'],
    187187          'IMAGE_TS'    => get_icon(@$category['date_last']),
    188          
     188
    189189          'U_IMG_LINK'  => make_index_url(
    190190            array(
    191191              'category' => $category['category'],
     192              'cat_name' => $category['name'],
    192193              )
    193194            ),
     
    202203          )
    203204        );
    204      
     205
    205206      // create a new line ?
    206207      if (++$row_number == $user['nb_image_line'])
Note: See TracChangeset for help on using the changeset viewer.