aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_picture.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-05-25 22:02:47 +0000
committerrub <rub@piwigo.org>2007-05-25 22:02:47 +0000
commit70ad3c68fc9e3a149961a298e33d1a9130df1bcc (patch)
tree6da5b7f8d3fd18a9f4c0f6870d51f67c23685827 /include/functions_picture.inc.php
parentbcb81f3efd51218ffccd5f2e802f3b7af0b33e0b (diff)
Improvement of picture url built
git-svn-id: http://piwigo.org/svn/trunk@2026 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_picture.inc.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/functions_picture.inc.php b/include/functions_picture.inc.php
index 09b7c90ce..4a21c1bcc 100644
--- a/include/functions_picture.inc.php
+++ b/include/functions_picture.inc.php
@@ -3,8 +3,7 @@
// | PhpWebGallery - a PHP based picture gallery |
// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
-// | branch : BSF (Best So Far)
-// | file : $RCSfile$
+// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
@@ -47,7 +46,7 @@ function get_element_url($element_info)
$url = get_element_location($element_info);
if ( !url_is_remote($url) )
{
- $url = get_root_url().$url;
+ $url = embellish_url(get_root_url().$url);
}
// plugins want another url ?
return trigger_event('get_element_url', $url, $element_info);
@@ -121,7 +120,7 @@ function get_image_url($element_info)
$url = get_image_location($element_info);
if ( !url_is_remote($url) )
{
- $url = get_root_url().$url;
+ $url = embellish_url(get_root_url().$url);
}
return $url;
}
@@ -179,7 +178,7 @@ function get_high_url($element_info)
$url = get_high_location($element_info);
if (!empty($url) and !url_is_remote($url) )
{
- $url = get_root_url().$url;
+ $url = embellish_url(get_root_url().$url);
}
// plugins want another url ?
return trigger_event('get_high_url', $url, $element_info);