Ignore:
Timestamp:
Nov 23, 2013, 2:26:29 PM (10 years ago)
Author:
nikrou
Message:

small issue with paramter called by value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/include/t4u_content.class.php

    r22062 r25653  
    5151     
    5252      $related_tags = array();
    53       if (!empty($template->smarty->_tpl_vars['related_tags'])) {
    54         foreach ($template->smarty->_tpl_vars['related_tags'] as $id => $tag_infos) {
     53      $_tpl_vars = $template->get_template_vars('related_tags');
     54      if (!empty($_tpl_vars)) {
     55        foreach ($_tpl_vars as $id => $tag_infos) {
    5556          $related_tags['~~'.$tag_infos['id'].'~~'] = $tag_infos['name'];
    5657        }
     
    6566  }
    6667
    67   public static function picture_prefilter($source, &$smarty) {
     68  public static function picture_prefilter($source, $smarty) {
    6869    $pattern = '{if $display_info.tags and isset($related_tags)}';
    6970    $replace = '{if $display_info.tags}';
Note: See TracChangeset for help on using the changeset viewer.