Changeset 6716 for trunk


Ignore:
Timestamp:
Jul 27, 2010, 2:50:37 PM (14 years ago)
Author:
plg
Message:

merge r6715 from branch 2.1 to trunk

bug 1785 fixed: the number of related tags is no longer hard coded

Location:
trunk/include
Files:
2 edited

Legend:

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

    r6510 r6716  
    632632$conf['menubar_tag_cloud_items_number'] = 100;
    633633
    634 // content_tag_cloud_items_number: number of tags to show in the tag
    635 // cloud on the content page. Only the most represented tags will be shown
     634// content_tag_cloud_items_number: number of related tags to show in the tag
     635// cloud on the content page, when the current section is not a set of
     636// tags. Only the most represented tags will be shown
    636637$conf['content_tag_cloud_items_number'] = 12;
    637638
  • trunk/include/menubar.inc.php

    r6363 r6716  
    144144    {
    145145      $selection = array_slice( $page['items'], $page['start'], $page['nb_image_page'] );
    146       $tags = add_level_to_tags( get_common_tags($selection, 12) );
     146      $tags = add_level_to_tags( get_common_tags($selection, $conf['content_tag_cloud_items_number']) );
    147147      foreach ($tags as $tag)
    148148      {
Note: See TracChangeset for help on using the changeset viewer.