aboutsummaryrefslogtreecommitdiffstats
path: root/include/derivative.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-03-06 20:43:18 +0000
committerrvelices <rv-github@modusoptimus.com>2012-03-06 20:43:18 +0000
commit679e2bf5fdfb59ec237d3768f3ab5ea578649340 (patch)
treef47fdd639a812a42805632e0258ea94edde70565 /include/derivative.inc.php
parent8495df013d3e513345dc921a7f7904503a8a4ac5 (diff)
added event for src image url
simplify js in picture.tpl action.php fix history saving git-svn-id: http://piwigo.org/svn/trunk@13489 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/derivative.inc.php')
-rw-r--r--include/derivative.inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/derivative.inc.php b/include/derivative.inc.php
index 6fbde63a2..144e76a27 100644
--- a/include/derivative.inc.php
+++ b/include/derivative.inc.php
@@ -76,7 +76,12 @@ final class SrcImage
function get_url()
{
- return embellish_url(get_root_url().$this->rel_path);
+ $url = get_root_url().$this->rel_path;
+ if ($this->flags & self::IS_ORIGINAL)
+ {
+ $url = trigger_event('get_src_image_url', $url, $this);
+ }
+ return embellish_url($url);
}
function has_size()