Changeset 28915


Ignore:
Timestamp:
07/02/14 11:49:32 (5 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.7 (still compatible with Piwigo 2.6, but no more 2.5), change trigger_event into trigger_change

Location:
extensions/PWG_Stuffs/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/admin.php

    r9738 r28915  
    3535//Récupération des modules disponibles 
    3636add_event_handler('get_stuffs_modules', 'get_default_stuffs_modules'); 
    37 $disp_modules = trigger_event('get_stuffs_modules', array()); 
     37$disp_modules = trigger_change('get_stuffs_modules', array()); 
    3838uasort($disp_modules, 'name_compare'); 
    3939 
  • extensions/PWG_Stuffs/trunk/admin/edit_module.inc.php

    r19921 r28915  
    1313 
    1414$template->assign(array( 
    15   'STUFFS_TITLE' => l10n('stuffs_edit_mod') . ' <i>' . trigger_event('render_stuffs_name', $module['name']) . '</i>', 
     15  'STUFFS_TITLE' => l10n('stuffs_edit_mod') . ' <i>' . trigger_change('render_stuffs_name', $module['name']) . '</i>', 
    1616  'MODULE_NAME' => $module['name'], 
    1717  'DESC_VALUE' => (isset($module['descr']) ? $module['descr'] : ''), 
  • extensions/PWG_Stuffs/trunk/admin/manage.inc.php

    r19921 r28915  
    7676  $template->append('modules', array( 
    7777    'ID' => $module['id'], 
    78     'NAME' => trigger_event('render_stuffs_name', $module['name']), 
     78    'NAME' => trigger_change('render_stuffs_name', $module['name']), 
    7979    'DESC' => $module['descr'], 
    8080    'PATH' => $module['path'], 
  • extensions/PWG_Stuffs/trunk/class.inc.php

    r19921 r28915  
    111111        if ($module['show_title'] == 'true') 
    112112        { 
    113           $block['TITLE'] = trigger_event('render_stuffs_name', $module['name']); 
     113          $block['TITLE'] = trigger_change('render_stuffs_name', $module['name']); 
    114114        } 
    115115        if (is_admin()) 
  • extensions/PWG_Stuffs/trunk/modules/LastComs/main.inc.php

    r21346 r28915  
    225225      'src_image' => $src_image, 
    226226      'ALT' => $name, 
    227       'AUTHOR' => trigger_event('render_comment_author', $comment['author']), 
     227      'AUTHOR' => trigger_change('render_comment_author', $comment['author']), 
    228228      'DATE' => format_date($comment['date'], true), 
    229       'CONTENT' => trigger_event('render_comment_content',$comment['content']), 
     229      'CONTENT' => trigger_change('render_comment_content',$comment['content']), 
    230230      'WIDTH' => $datas[3], 
    231231      'HEIGHT' => $datas[4], 
Note: See TracChangeset for help on using the changeset viewer.