From 6cf50446e4071095c0b18a76038fb96de5a10475 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Mon, 18 Oct 2010 22:59:49 +0000 Subject: html/tag was not outputting any attributes --- views/default/html/tag.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'views/default') 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'].""; +if (isset($body)) { + echo "$body"; } \ No newline at end of file -- cgit v1.2.3