aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php9
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