aboutsummaryrefslogtreecommitdiff
path: root/actions/icon.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/icon.php')
-rw-r--r--actions/icon.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/actions/icon.php b/actions/icon.php
index 718425819..bfc18198a 100644
--- a/actions/icon.php
+++ b/actions/icon.php
@@ -1,18 +1,13 @@
<?php
/**
- * Elgg tidypics icon action
+ * tidypics icon action
*
- * @package ElggFile
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
*/
$file_guid = get_input("file_guid");
$file = get_entity($file_guid);
- if ($file)
- {
+ if ($file) {
$filename = $file->thumbnail;
$mime = $file->mimetype;
@@ -35,7 +30,7 @@
echo $contents;
exit;
- }
- else
+ } else {
register_error(elgg_echo("file:downloadfailed"));
+ }
?> \ No newline at end of file