diff options
| author | lsces <lester@lsces.co.uk> | 2014-06-04 08:31:19 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2014-06-04 08:31:19 +0100 |
| commit | efa49080b4f376b45b692fa79a3518ab837023e8 (patch) | |
| tree | 9a1d8c51d9aad314f32f8fc1024f882d88dc1438 /liberty_plugins | |
| parent | 0f82c8cb6936c822e6381f07ac341c4d39f7b9cb (diff) | |
| download | fisheye-efa49080b4f376b45b692fa79a3518ab837023e8.tar.gz fisheye-efa49080b4f376b45b692fa79a3518ab837023e8.tar.bz2 fisheye-efa49080b4f376b45b692fa79a3518ab837023e8.zip | |
Tidy fancy_zoom file name when it includes spaces
Diffstat (limited to 'liberty_plugins')
| -rw-r--r-- | liberty_plugins/data.image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liberty_plugins/data.image.php b/liberty_plugins/data.image.php index 0560a00..e9b51ec 100644 --- a/liberty_plugins/data.image.php +++ b/liberty_plugins/data.image.php @@ -101,7 +101,7 @@ function data_image( $pData, $pParams ) { $ret = '<a href="'.trim( $wrapper['link'] ).'">'.$ret.'</a>'; } elseif ( empty( $pParams['size'] ) || $pParams['size'] != 'original' ) { if ( $gBitSystem->isFeatureActive( 'site_fancy_zoom' ) and !empty( $item->mInfo['source_url'] ) ) { - $ret = '<a href="'.trim( $item->mInfo['source_url'] ).'">'.$ret.'</a>'; + $ret = '<a href="'.trim( str_replace(' ', '%20', $item->mInfo['source_url'] ) ).'">'.$ret.'</a>'; } else if ( $item->getDownloadUrl() ) { $ret = '<a href="'.trim( $item->getDownloadUrl() ).'">'.$ret.'</a>'; } else if ( !empty( $item->mInfo['media_url'] ) ) { |
