summaryrefslogtreecommitdiff
path: root/liberty_plugins
diff options
context:
space:
mode:
authorLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-17 20:12:58 +0100
committerLester Caine ext:(%22) <lester@lsces.co.uk>2012-04-17 20:12:58 +0100
commitacd866e421e9ca21c941587c67fcca6c4713c03a (patch)
tree1b2cd9fb5c9fd2d9aa1294a56ec6a4540fa31e75 /liberty_plugins
parentbbb96f97e0301f4083e39a0e5a9117dc92f0c565 (diff)
downloadfisheye-acd866e421e9ca21c941587c67fcca6c4713c03a.tar.gz
fisheye-acd866e421e9ca21c941587c67fcca6c4713c03a.tar.bz2
fisheye-acd866e421e9ca21c941587c67fcca6c4713c03a.zip
Tidy up to remove 'STRICT' warnings
Split static and dynamic use of getDisplayUrl Create getContentUrl as the instantiated version parameters need to be identical across all classes
Diffstat (limited to 'liberty_plugins')
-rw-r--r--liberty_plugins/data.image.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/liberty_plugins/data.image.php b/liberty_plugins/data.image.php
index 59184ea..d421158 100644
--- a/liberty_plugins/data.image.php
+++ b/liberty_plugins/data.image.php
@@ -100,7 +100,11 @@ function data_image( $pData, $pParams ) {
// if this image is linking to something, wrap the image with the <a>
$ret = '<a href="'.trim( $wrapper['link'] ).'">'.$ret.'</a>';
} elseif ( empty( $pParams['size'] ) || $pParams['size'] != 'original' ) {
- $ret = '<a href="'.trim( $item->mInfo['source_url'] ).'">'.$ret.'</a>';
+ if ( !empty( $item->mInfo['source_url'] ) ) {
+ $ret = '<a href="'.trim( $item->mInfo['source_url'] ).'">'.$ret.'</a>';
+ } else if ( !empty( $item->mInfo['media_url'] ) ) {
+ $ret = '<a href="'.trim( $item->mInfo['media_url'] ).'">'.$ret.'</a>';
+ }
}
if( !empty( $wrapper['style'] ) || !empty( $class ) || !empty( $wrapper['description'] ) ) {