Changeset 25653


Ignore:
Timestamp:
11/23/13 14:26:29 (6 years ago)
Author:
nikrou
Message:

small issue with paramter called by value

Location:
extensions/user_tags
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/CHANGELOG

    r22063 r25653  
     1User Tags 0.8.3 - 2013-11-23 
     2================================ 
     3* small issue with paramter called by value 
     4 
    15User Tags 0.8.1 - 2013-04-07 
    26================================ 
  • 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}'; 
  • extensions/user_tags/language/bg_BG/plugin.lang.php

    r25317 r25653  
    11<?php 
    22// +-----------------------------------------------------------------------+ 
    3 // | Piwigo - a PHP based photo gallery                                    | 
     3// | User Tags  - a plugin for Piwigo                                      | 
    44// +-----------------------------------------------------------------------+ 
    5 // | Copyright(C) 2008-2013 Piwigo Team                  http://piwigo.org | 
    6 // | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net | 
    7 // | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick | 
     5// | Copyright(C) 2010-2013 Nicolas Roudaire        http://www.nikrou.net  | 
    86// +-----------------------------------------------------------------------+ 
    97// | This program is free software; you can redistribute it and/or modify  | 
    10 // | it under the terms of the GNU General Public License as published by  | 
    11 // | the Free Software Foundation                                          | 
     8// | it under the terms of the GNU General Public License version 2 as     | 
     9// | published by the Free Software Foundation                             | 
    1210// |                                                                       | 
    1311// | This program is distributed in the hope that it will be useful, but   | 
     
    1816// | You should have received a copy of the GNU General Public License     | 
    1917// | along with this program; if not, write to the Free Software           | 
    20 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 
    21 // | USA.                                                                  | 
     18// | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,            | 
     19// | MA 02110-1301 USA.                                                    | 
    2220// +-----------------------------------------------------------------------+ 
     21 
    2322$lang['Be careful, whatever the configuration value is, new tag can be deleted anyway'] = 'Бъдете внимателни, независимо от конфигурацията, новият таг може да бъде изтрит'; 
    2423$lang['Click to add tags'] = 'Изберете, за да добавите таг'; 
     
    3534$lang['Who can add tags?'] = 'Кой може да добавя тагове?'; 
    3635$lang['Update tags'] = 'Обновете таговете'; 
    37 ?> 
  • extensions/user_tags/main.inc.php

    r23289 r25653  
    2222/* 
    2323Plugin Name: User Tags 
    24 Version: 0.8.2 
     24Version: 0.8.3 
    2525Description: Allow visitors to add tag to images 
    2626Plugin URI: http://piwigo.org/ext/extension_view.php?eid=441 
Note: See TracChangeset for help on using the changeset viewer.