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
This commit is contained in:
rvelices
2012-03-06 20:43:18 +00:00
parent 8495df013d
commit 679e2bf5fd
3 changed files with 12 additions and 9 deletions
+6 -1
View File
@@ -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()