diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-13 16:22:57 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-13 16:22:57 -0500 |
commit | 6483d9d446e7fa50e16823fe20514a45416880e2 (patch) | |
tree | 68c5bb2e6a0b7b486e17f1101321323e7894a008 /views/default/output/img.php | |
parent | 95346209886527207ffd036a58d6fd50572d34fd (diff) | |
download | elgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.gz elgg-6483d9d446e7fa50e16823fe20514a45416880e2.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/>"; |