aboutsummaryrefslogtreecommitdiffstats
path: root/include/derivative.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-06-02 07:55:46 +0000
committermistic100 <mistic@piwigo.org>2014-06-02 07:55:46 +0000
commit4bd32005b56f6ec741ceeed0a1745fe89f291085 (patch)
treee2ee9bb68d07822bb7c0122831a0ce313a5af2d2 /include/derivative.inc.php
parentf98edc7a2e423bed534977107e4cb892180cb946 (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--include/derivative.inc.php8
1 files changed, 4 insertions, 4 deletions
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
) );