Changeset 28626


Ignore:
Timestamp:
Jun 4, 2014, 1:10:15 PM (6 years ago)
Author:
mistic100
Message:

use trigger_change

Location:
extensions/UserCollections
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/admin/sets.php

    r26854 r28626  
    4646{
    4747  $template->append('sets', array(
    48     'NAME' => trigger_event('render_category_name', $row['name']),
     48    'NAME' => trigger_change('render_category_name', $row['name']),
    4949    'NB_IMAGES' => $row['nb_images'],
    5050    'DATE_CREATION' => format_date($row['date_creation'], true),
  • extensions/UserCollections/include/collections.inc.php

    r27264 r28626  
    269269    // modify page title
    270270    $template->concat('TITLE',
    271       $conf['level_separator'] . trigger_event('render_category_name', $infos['NAME'])
     271      $conf['level_separator'] . trigger_change('render_category_name', $infos['NAME'])
    272272      );
    273273
    274274    // render description
    275275    $template->assign('CONTENT_DESCRIPTION',
    276       trigger_event('render_category_description', nl2br($infos['COMMENT']))
     276      trigger_change('render_category_description', nl2br($infos['COMMENT']))
    277277      );
    278278  }
     
    371371      // render description
    372372      $template->assign('CONTENT_DESCRIPTION',
    373         trigger_event('render_category_description', nl2br($col['COMMENT']))
     373        trigger_change('render_category_description', nl2br($col['COMMENT']))
    374374        );
    375375    }
     
    379379
    380380    $template->concat('TITLE',
    381       $conf['level_separator'] . trigger_event('render_category_name', $col['NAME']) .
     381      $conf['level_separator'] . trigger_change('render_category_name', $col['NAME']) .
    382382      ' (' . l10n('by %s', get_username($collection->getParam('user_id'))) . ')'
    383383      );
  • extensions/UserCollections/include/display_collections.inc.php

    r27264 r28626  
    112112      'URL' =>                USER_COLLEC_PUBLIC.'edit/'.$category['id'],
    113113      'CAPTION_NB_IMAGES' =>  empty($counter) ? l10n('%d photo', 0) : $counter,
    114       'NAME' =>               trigger_event('render_category_name', $category['name']),
    115       'DESCRIPTION' =>        trigger_event('render_category_description', $category['comment'], 'subcatify_category_description'),
     114      'NAME' =>               trigger_change('render_category_name', $category['name']),
     115      'DESCRIPTION' =>        trigger_change('render_category_description', $category['comment'], 'subcatify_category_description'),
    116116      'INFO_DATES' =>         format_date($category['date_creation'], true),
    117117      'U_DELETE' =>           add_url_params(USER_COLLEC_PUBLIC, array('action'=>'delete','col_id'=>$category['id'])),
     
    121121  }
    122122
    123   $derivative_params = trigger_event('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) );
     123  $derivative_params = trigger_change('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) );
    124124  $template->assign(array(
    125125    'maxRequests' => $conf['max_requests'],
  • extensions/UserCollections/include/events.inc.php

    r28593 r28626  
    115115  foreach ($collections as &$col)
    116116  {
    117     $col["name"] = trigger_event('render_category_name', $col["name"]);
     117    $col["name"] = trigger_change('render_category_name', $col["name"]);
    118118  }
    119119  unset($col);
     
    185185  foreach ($collections as &$col)
    186186  {
    187     $col['name'] = trigger_event('render_category_name', $col["name"]);
     187    $col['name'] = trigger_change('render_category_name', $col["name"]);
    188188  }
    189189  unset($col);
     
    240240    for ($i=0; $i<$max && $i<count($collections); $i++)
    241241    {
    242       $collections[$i]['name'] = trigger_event('render_category_name', $collections[$i]['name']);
     242      $collections[$i]['name'] = trigger_change('render_category_name', $collections[$i]['name']);
    243243      $collections[$i]['u_edit'] = USER_COLLEC_PUBLIC.'edit/'.$collections[$i]['id'];
    244244      $data['collections'][] = $collections[$i];
  • extensions/UserCollections/include/functions.inc.php

    r26854 r28626  
    1616  global $conf;
    1717
    18   return trigger_event('get_category_preferred_image_orders', array(
     18  return trigger_change('get_category_preferred_image_orders', array(
    1919    array(l10n('Date added to collection, new &rarr; old'), 'add_date DESC', true),
    2020    array(l10n('Date added to collection, old &rarr; new'), 'add_date ASC',  true),
Note: See TracChangeset for help on using the changeset viewer.