summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-03-19 23:47:23 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-03-19 23:47:23 +0000
commite4b87dc58c86e1a03fa4a3529e060cb5e193030d (patch)
treed487a44bf69e11026ea8fb4457febb6dd025047e /views
parent79f4038d0e05c57082e841ac36fc2559dd70ea77 (diff)
Apparently some new changes in Gallery3 broke this module. This change defines a diff between the src of an img and the link address to the image itself.
Diffstat (limited to 'views')
-rw-r--r--views/randimg.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/randimg.html.php b/views/randimg.html.php
index 6cf0943..52d4d78 100644
--- a/views/randimg.html.php
+++ b/views/randimg.html.php
@@ -12,7 +12,7 @@ $virtpath = $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']);
$g3path = "{$_SERVER['HTTP_HOST']}{$_SERVER['SCRIPT_NAME']}";
echo <<<HTML
-<a href="http://$g3path/$imgpath" title="$img_title">
+<a href="http://$g3path/$linkpath" title="$img_title">
<img src="http://$virtpath/var/resizes/$imgpath" style="border: thin solid black;" alt="$img_title" />
</a>