Changeset 246


Ignore:
Timestamp:
Jan 3, 2004, 9:43:43 PM (20 years ago)
Author:
z0rglub
Message:

the number of subcats of a category is now in the var nb_sub_categories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/template/default/htmlfunctions.inc.php

    r57 r246  
    179179  $vtp->setVar( $handle, 'category.indent', $indent );
    180180
    181   if ( $user['expand'] or count( $category['subcats'] ) == 0 )
     181  if ( $user['expand'] or $category['nb_sub_categories'] == 0 )
    182182  {
    183183    $vtp->addSession( $handle, 'bullet_wo_link' );
     
    221221    $vtp->setVar( $handle, 'category.name_style', 'font-weight:bold;' );
    222222  }
    223   if ( count( $category['subcats'] ) > 0 )
     223  if ( $category['nb_sub_categories'] > 0 )
    224224  {
    225225    $vtp->addSession( $handle, 'subcat' );
    226     $vtp->setVar( $handle, 'subcat.nb_subcats', count($category['subcats']) );
     226    $vtp->setVar( $handle,'subcat.nb_subcats',$category['nb_sub_categories'] );
    227227    $vtp->closeSession( $handle, 'subcat' );
    228228  }
Note: See TracChangeset for help on using the changeset viewer.