diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/html/tag.php | 12 |
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 |