diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-21 18:12:50 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-21 18:12:50 +0000 |
commit | 7acd3a2947f7bd92ded5bc5f02baa5db87f6b212 (patch) | |
tree | 7c1a8394f0aa6b1f1b384b445702329c55db8818 /actions/icon.php | |
parent | 26be16aaf2189a4b50b06494aab6c6690480a371 (diff) | |
download | elgg-7acd3a2947f7bd92ded5bc5f02baa5db87f6b212.tar.gz elgg-7acd3a2947f7bd92ded5bc5f02baa5db87f6b212.tar.bz2 |
cleaned up actions - formatting
Diffstat (limited to 'actions/icon.php')
-rw-r--r-- | actions/icon.php | 13 |
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 |