diff options
author | mistic100 <mistic@piwigo.org> | 2014-06-02 07:55:46 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-06-02 07:55:46 +0000 |
commit | 4bd32005b56f6ec741ceeed0a1745fe89f291085 (patch) | |
tree | e2ee9bb68d07822bb7c0122831a0ce313a5af2d2 /picture.php | |
parent | f98edc7a2e423bed534977107e4cb892180cb946 (diff) |
feature 3010 : replace trigger_action/event by trigger_notify/change
git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | picture.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/picture.php b/picture.php index 13599bc43..cea4adeae 100644 --- a/picture.php +++ b/picture.php @@ -144,7 +144,7 @@ add_event_handler( // add default event handler for rendering element description add_event_handler('render_element_description', 'nl2br'); -trigger_action('loc_begin_picture'); +trigger_notify('loc_begin_picture'); // this is the default handler that generates the display for the element function default_picture_content($content, $element_info) @@ -434,7 +434,7 @@ else } // don't increment if adding a comment -if (trigger_event('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) ) +if (trigger_change('allow_increment_element_hit_count', $inc_hit_count, $page['image_id'] ) ) { $query = ' UPDATE @@ -614,7 +614,7 @@ $url_metadata = add_url_params( $url_metadata, array('metadata'=>null) ); // do we have a plugin that can show metadata for something else than images? -$metadata_showable = trigger_event( +$metadata_showable = trigger_change( 'get_element_metadata_available', ( ($conf['show_exif'] or $conf['show_iptc']) @@ -632,7 +632,7 @@ if ( $metadata_showable and pwg_get_session_var('show_metadata') ) $page['body_id'] = 'thePicturePage'; // allow plugins to change what we computed before passing data to template -$picture = trigger_event('picture_pictures_data', $picture); +$picture = trigger_change('picture_pictures_data', $picture); //------------------------------------------------------- navigation management foreach (array('first','previous','next','last', 'current') as $which_image) @@ -808,7 +808,7 @@ if (isset($picture['current']['comment']) { $template->assign( 'COMMENT_IMG', - trigger_event('render_element_description', + trigger_change('render_element_description', $picture['current']['comment'], 'picture_page_element_description' ) @@ -937,7 +937,7 @@ SELECT id, name, permalink // maybe someone wants a special display (call it before page_header so that // they can add stylesheets) -$element_content = trigger_event( +$element_content = trigger_change( 'render_element_content', '', $picture['current'] @@ -987,7 +987,7 @@ if ($conf['picture_menu'] AND (!isset($themeconf['hide_menu_on']) OR !in_array(' } include(PHPWG_ROOT_PATH.'include/page_header.php'); -trigger_action('loc_end_picture'); +trigger_notify('loc_end_picture'); flush_page_messages(); if ($page['slideshow'] and $conf['light_slideshow']) { |