Changeset 2414


Ignore:
Timestamp:
Jul 2, 2008, 3:13:12 AM (16 years ago)
Author:
rvelices
Message:
  • tags improvement : pass to templates all fields in table #tags (handy for plugins such as type tags)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/menubar.inc.php

    r2347 r2414  
    6060  }
    6161
    62   if 
     62  if
    6363    (
    6464      (!isset($url_data['eval_visible']))
     
    7777    {
    7878      $template->assign_block_vars(
    79         'links.link.new_window', 
     79        'links.link.new_window',
    8080        array(
    8181          'name' => (isset($url_data['nw_name']) ? $url_data['nw_name'] : ''),
     
    127127    $template->assign_block_vars(
    128128      'tags.tag',
    129       array(
    130         'URL' => make_index_url(
    131           array(
    132             'tags' => array($tag)
    133             )
    134           ),
    135 
    136         'NAME' => $tag['name'],
    137 
    138         'TITLE' => l10n('See pictures linked to this tag only'),
    139 
    140         'CLASS' => 'tagLevel'.$tag['level']
     129      array_merge(
     130        $tag,
     131        array(
     132          'URL' => make_index_url(
     133            array(
     134              'tags' => array($tag)
     135              )
     136            ),
     137
     138          'NAME' => $tag['name'],
     139
     140          'TITLE' => l10n('See pictures linked to this tag only'),
     141
     142          'CLASS' => 'tagLevel'.$tag['level']
     143          )
    141144        )
    142145      );
Note: See TracChangeset for help on using the changeset viewer.