aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/object/image.php2
-rw-r--r--views/default/tidypics/download.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php
index b456fdebc..16ec74868 100644
--- a/views/default/object/image.php
+++ b/views/default/object/image.php
@@ -137,7 +137,7 @@ if ($photo_tags) {
<div id="tidypics_controls">
<ul>
<li><a id="tag_control" href="javascript:void(0)" onclick="startTagging()"><?= elgg_echo('image:tagthisphoto') ?></a></li>
- <li><a href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("image:download"); ?></a></li>
+ <?php echo elgg_view('tidypics/download', array('file_guid' => $file_guid,) ); ?>
</ul>
</div>
<?php if ($photo_tags) { ?>
diff --git a/views/default/tidypics/download.php b/views/default/tidypics/download.php
new file mode 100644
index 000000000..becb4b5fe
--- /dev/null
+++ b/views/default/tidypics/download.php
@@ -0,0 +1,4 @@
+<?php
+ $file_guid = $vars['file_guid'];
+?>
+<li><a href="<?php echo $vars['url']; ?>action/tidypics/download?file_guid=<?php echo $file_guid; ?>"><?php echo elgg_echo("image:download"); ?></a></li> \ No newline at end of file