From 4bd32005b56f6ec741ceeed0a1745fe89f291085 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 2 Jun 2014 07:55:46 +0000 Subject: feature 3010 : replace trigger_action/event by trigger_notify/change git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/derivative.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/derivative.inc.php') diff --git a/include/derivative.inc.php b/include/derivative.inc.php index 49fa9d042..a6e0642ff 100644 --- a/include/derivative.inc.php +++ b/include/derivative.inc.php @@ -67,7 +67,7 @@ final class SrcImage else { $ext = strtolower($ext); - $this->rel_path = trigger_event('get_mimetype_location', get_themeconf('mime_icon_dir').$ext.'.png', $ext ); + $this->rel_path = trigger_change('get_mimetype_location', get_themeconf('mime_icon_dir').$ext.'.png', $ext ); $this->flags |= self::IS_MIMETYPE; if ( ($size=@getimagesize(PHPWG_ROOT_PATH.$this->rel_path)) === false) { @@ -134,7 +134,7 @@ final class SrcImage $url = get_root_url().$this->rel_path; if ( !($this->flags & self::IS_MIMETYPE) ) { - $url = trigger_event('get_src_image_url', $url, $this); + $url = trigger_change('get_src_image_url', $url, $this); } return embellish_url($url); } @@ -235,7 +235,7 @@ final class DerivativeImage return $src_image->get_url(); } return embellish_url( - trigger_event('get_derivative_url', + trigger_change('get_derivative_url', get_root_url().$rel_url, $params, $src_image, $rel_url ) ); @@ -405,7 +405,7 @@ final class DerivativeImage return $this->src_image->get_url(); } return embellish_url( - trigger_event('get_derivative_url', + trigger_change('get_derivative_url', get_root_url().$this->rel_url, $this->params, $this->src_image, $this->rel_url ) ); -- cgit v1.2.3