aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorEvan Winslow <evan.b.winslow@gmail.com>2010-10-18 22:59:49 +0000
committerEvan Winslow <evan.b.winslow@gmail.com>2010-10-18 22:59:49 +0000
commit6cf50446e4071095c0b18a76038fb96de5a10475 (patch)
tree2d3a2eb480096d35a968787ac20b6d52b9e59320 /views/default
parente87c1b5d6a208cdf81a7d0d756dc755bec0322da (diff)
downloadelgg-6cf50446e4071095c0b18a76038fb96de5a10475.tar.gz
elgg-6cf50446e4071095c0b18a76038fb96de5a10475.tar.bz2
html/tag was not outputting any attributes
Diffstat (limited to 'views/default')
-rw-r--r--views/default/html/tag.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/views/default/html/tag.php b/views/default/html/tag.php
index 8ad6679b4..c8a49dd61 100644
--- a/views/default/html/tag.php
+++ b/views/default/html/tag.php
@@ -28,12 +28,16 @@ if (isset($vars['js'])) {
}
$tag = $vars['tag'];
+unset($vars['tag']);
+
+$body = $vars['body'];
+unset($vars['body']);
//Build the input
$element = array();
$element[] = "<$tag";
-foreach ($attributes as $attr => $val) {
+foreach ($vars as $attr => $val) {
if ($val === TRUE) {
$element[] = $attr;
} elseif ($val !== FALSE) {
@@ -46,12 +50,12 @@ if (!empty($js)) {
$element[] = $js;
}
-if (!isset($vars['body'])) {
+if (!isset($body)) {
$element[] = '/';
}
echo implode(" ", $element).">";
-if (isset($vars['body'])) {
- echo $vars['body']."</$tag>";
+if (isset($body)) {
+ echo "$body</$tag>";
} \ No newline at end of file