summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-11-20 02:14:30 +0000
committerChristian Fowler <spider@viovio.com>2007-11-20 02:14:30 +0000
commitf9381a2ec09e5154ecf4129275b015e818d3e105 (patch)
tree9f5c7c332f1a68d9369fb001cf7e5f4268a4028f
parent22b9e182450c789f7c19207f8193aeb465c9215c (diff)
downloadliberty-f9381a2ec09e5154ecf4129275b015e818d3e105.tar.gz
liberty-f9381a2ec09e5154ecf4129275b015e818d3e105.tar.bz2
liberty-f9381a2ec09e5154ecf4129275b015e818d3e105.zip
add a clean BIT_ROOT_URL the thumbnail urls
-rw-r--r--liberty_lib.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/liberty_lib.php b/liberty_lib.php
index de562be..0780dae 100644
--- a/liberty_lib.php
+++ b/liberty_lib.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/liberty_lib.php,v 1.18 2007/11/19 15:55:26 nickpalmer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/liberty_lib.php,v 1.19 2007/11/20 02:14:30 spiderr Exp $
* @package liberty
* @subpackage functions
*/
@@ -750,7 +750,8 @@ function liberty_fetch_thumbnails( $pFilePath, $pAltImageUrl = NULL, $pThumbSize
foreach( $pThumbSizes as $size ) {
foreach( $exts as $ext ) {
if( empty( $ret[$size] ) && is_readable( BIT_ROOT_PATH.dirname( $pFilePath ).'/'.$size.'.'.$ext )) {
- $ret[$size] = str_replace( "//", "/", BIT_ROOT_URL.dirname( $pFilePath ).'/'.$size.'.'.$ext );
+ $path = str_replace( "//", "/", dirname( $pFilePath ).'/'.$size.'.'.$ext );
+ $ret[$size] = BIT_ROOT_URL.$path;
}
}