Ignore:
Timestamp:
Apr 11, 2006, 5:55:51 AM (18 years ago)
Author:
rvelices
Message:

merge r1144 from branch-1_6 into trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_recent_cats.inc.php

    r1132 r1145  
    4747       , tn_ext
    4848       , nb_images
     49       , c.name AS cat_name
    4950  FROM '.CATEGORIES_TABLE.' AS c
    5051    INNER JOIN '.IMAGES_TABLE.' AS i ON i.id = c.representative_picture_id
     
    6869      )
    6970    );
    70  
     71
    7172  // template thumbnail initialization
    7273  if (mysql_num_rows($result) > 0)
    7374  {
    7475    $template->assign_block_vars('categories', array());
     76  }
     77
     78  $comment = null;
     79  if (isset($row['comment']))
     80  {
     81    $comment = strip_tags($row['comment'], '<a><br><p><b><i><small><strong>');
    7582  }
    7683
     
    8592        'ALT'   => $row['file'],
    8693        'TITLE' => $lang['hint_category'],
    87        
     94
    8895        'URL'  => make_index_url(
    8996          array(
    9097            'category' => $row['category_id'],
     98            'cat_name' => $row['cat_name'],
    9199            )
    92100          ),
    93101        'NAME' => get_cat_display_name_cache($row['uppercats'], null, false),
    94102        'NB_IMAGES' => $row['nb_images'],
    95         'DESCRIPTION' => @$row['comment'],
     103        'DESCRIPTION' => $comment,
    96104        )
    97105      );
     
    111119    $row_number = 0;
    112120  }
    113  
     121
    114122  $old_level_separator = $conf['level_separator'];
    115123  $conf['level_separator'] = '<br />';
     
    124132        'IMAGE_ALT'   => $row['file'],
    125133        'IMAGE_TITLE' => $lang['hint_category'],
    126        
     134
    127135        'U_IMG_LINK'  => make_index_url(
    128136          array(
    129137            'category' => $row['category_id'],
     138            'cat_name' => $row['cat_name'],
    130139            )
    131140          ),
Note: See TracChangeset for help on using the changeset viewer.