diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-13 16:22:57 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-16 19:53:04 -0500 |
commit | 5ae9e93b57bdc6744198538153b84bed4a34e960 (patch) | |
tree | d8314be7c594087d69ef0dcb716ab1255323a758 /views/default/output/img.php | |
parent | c75ee6f8807e34d3d9c4c941e6d0e656a5b1b9b3 (diff) | |
download | elgg-5ae9e93b57bdc6744198538153b84bed4a34e960.tar.gz elgg-5ae9e93b57bdc6744198538153b84bed4a34e960.tar.bz2 |
Fixes #4082 adds output/img
Diffstat (limited to 'views/default/output/img.php')
-rw-r--r-- | views/default/output/img.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/views/default/output/img.php b/views/default/output/img.php new file mode 100644 index 000000000..d3f596801 --- /dev/null +++ b/views/default/output/img.php @@ -0,0 +1,12 @@ +<?php +/** + * Elgg image view + * + * @uses string $vars['src'] The image src url. + */ + +$vars['src'] = elgg_normalize_url($vars['src']); +$vars['src'] = elgg_format_url($vars['src']); + +$attributes = elgg_format_attributes($vars); +echo "<img $attributes/>"; |