Changeset 26854


Ignore:
Timestamp:
Jan 18, 2014, 1:55:31 PM (7 years ago)
Author:
mistic100
Message:

keep old trigger functions (PHP 5.2 issue)

Location:
extensions/UserCollections
Files:
5 edited

Legend:

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

    r25678 r26854  
    4646{
    4747  $template->append('sets', array(
    48     'NAME' => trigger_change('render_category_name', $row['name']),
     48    'NAME' => trigger_event('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

    r25678 r26854  
    267267    // modify page title
    268268    $template->concat('TITLE',
    269       $conf['level_separator'] . trigger_change('render_category_name', $infos['NAME'])
     269      $conf['level_separator'] . trigger_event('render_category_name', $infos['NAME'])
    270270      );
    271271
    272272    // render description
    273273    $template->assign('CONTENT_DESCRIPTION',
    274       trigger_change('render_category_description', nl2br($infos['COMMENT']))
     274      trigger_event('render_category_description', nl2br($infos['COMMENT']))
    275275      );
    276276  }
     
    369369      // render description
    370370      $template->assign('CONTENT_DESCRIPTION',
    371         trigger_change('render_category_description', nl2br($col['COMMENT']))
     371        trigger_event('render_category_description', nl2br($col['COMMENT']))
    372372        );
    373373    }
     
    377377
    378378    $template->concat('TITLE',
    379       $conf['level_separator'] . trigger_change('render_category_name', $col['NAME']) .
     379      $conf['level_separator'] . trigger_event('render_category_name', $col['NAME']) .
    380380      ' (' . l10n('by %s', get_username($collection->getParam('user_id'))) . ')'
    381381      );
  • extensions/UserCollections/include/display_collections.inc.php

    r25678 r26854  
    9999      'URL' =>                USER_COLLEC_PUBLIC.'edit/'.$category['id'],
    100100      'CAPTION_NB_IMAGES' =>  empty($counter) ? l10n('%d photo', 0) : $counter,
    101       'NAME' =>               trigger_change('render_category_name', $category['name']),
    102       'DESCRIPTION' =>        trigger_change('render_category_description', $category['comment'], 'subcatify_category_description'),
     101      'NAME' =>               trigger_event('render_category_name', $category['name']),
     102      'DESCRIPTION' =>        trigger_event('render_category_description', $category['comment'], 'subcatify_category_description'),
    103103      'INFO_DATES' =>         format_date($category['date_creation'], true),
    104104      'U_DELETE' =>           add_url_params(USER_COLLEC_PUBLIC, array('action'=>'delete','col_id'=>$category['id'])),
     
    108108  }
    109109
    110   $derivative_params = trigger_change('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) );
     110  $derivative_params = trigger_event('get_index_album_derivative_params', ImageStdParams::get_by_type(IMG_THUMB) );
    111111  $template->assign(array(
    112112    'maxRequests' => $conf['max_requests'],
  • extensions/UserCollections/include/events.inc.php

    r26176 r26854  
    115115  foreach ($collections as &$col)
    116116  {
    117     $col["name"] = trigger_change('render_category_name', $col["name"]);
     117    $col["name"] = trigger_event('render_category_name', $col["name"]);
    118118  }
    119119  unset($col);
     
    185185  foreach ($collections as &$col)
    186186  {
    187     $col["name"] = trigger_change('render_category_name', $col["name"]);
     187    $col['name'] = trigger_event('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_change('render_category_name', $collections[$i]['name']);
     242      $collections[$i]['name'] = trigger_event('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

    r25678 r26854  
    1616  global $conf;
    1717
    18   return trigger_change('get_category_preferred_image_orders', array(
     18  return trigger_event('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.