aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-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()