diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-01-24 19:24:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-01-24 19:24:47 +0000 |
commit | 4372d7aa112a2eedb4e3959a87c779984c698e2c (patch) | |
tree | effb299c1e7af6d56d68ea1916845184553e3b6b /include/functions.inc.php | |
parent | 3b3e586b0d9a0a4da92d5040bfb08937afdc239f (diff) |
feature 2548 multisize
- added define_derivative template functiion for themes and plugins
- code cleanup, new events ...
git-svn-id: http://piwigo.org/svn/trunk@12954 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 5ea5432b6..691848326 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -778,14 +778,7 @@ function get_thumbnail_path($element_info) */ function get_thumbnail_url($element_info) { - $loc = $url = get_thumbnail_location($element_info); - if ( !url_is_remote($loc) ) - { - $url = (get_root_url().$loc); - } - // plugins want another url ? - $url = trigger_event('get_thumbnail_url', $url, $element_info, $loc); - return embellish_url($url); + return DerivativeImage::thumb_url($element_info); } /* returns the relative path of the thumnail with regards to to the root |