aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-09 13:32:37 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-09 13:32:37 +0000
commit37a556d955f2e18f83d239733963527cd573c233 (patch)
tree37a3e8d82d43a4e82f623a6f67aaf8a5733f7746 /views
parent896610c152dde74488a01acb6a3e5beda6cde04d (diff)
downloadelgg-37a556d955f2e18f83d239733963527cd573c233.tar.gz
elgg-37a556d955f2e18f83d239733963527cd573c233.tar.bz2
admins can now override download link
Diffstat (limited to 'views')
-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