Changeset 28587 for trunk/picture.php


Ignore:
Timestamp:
Jun 2, 2014, 9:55:46 AM (10 years ago)
Author:
mistic100
Message:

feature 3010 : replace trigger_action/event by trigger_notify/change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r28184 r28587  
    145145add_event_handler('render_element_description', 'nl2br');
    146146
    147 trigger_action('loc_begin_picture');
     147trigger_notify('loc_begin_picture');
    148148
    149149// this is the default handler that generates the display for the element
     
    435435
    436436// don't increment if adding a comment
    437 if (trigger_event('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) )
     437if (trigger_change('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) )
    438438{
    439439  $query = '
     
    615615
    616616// do we have a plugin that can show metadata for something else than images?
    617 $metadata_showable = trigger_event(
     617$metadata_showable = trigger_change(
    618618  'get_element_metadata_available',
    619619  (
     
    633633
    634634// allow plugins to change what we computed before passing data to template
    635 $picture = trigger_event('picture_pictures_data', $picture);
     635$picture = trigger_change('picture_pictures_data', $picture);
    636636
    637637//------------------------------------------------------- navigation management
     
    809809  $template->assign(
    810810      'COMMENT_IMG',
    811         trigger_event('render_element_description',
     811        trigger_change('render_element_description',
    812812          $picture['current']['comment'],
    813813          'picture_page_element_description'
     
    938938// maybe someone wants a special display (call it before page_header so that
    939939// they can add stylesheets)
    940 $element_content = trigger_event(
     940$element_content = trigger_change(
    941941  'render_element_content',
    942942  '',
     
    988988
    989989include(PHPWG_ROOT_PATH.'include/page_header.php');
    990 trigger_action('loc_end_picture');
     990trigger_notify('loc_end_picture');
    991991flush_page_messages();
    992992if ($page['slideshow'] and $conf['light_slideshow'])
Note: See TracChangeset for help on using the changeset viewer.