]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
html/tag was not outputting any attributes
authorEvan Winslow <evan.b.winslow@gmail.com>
Mon, 18 Oct 2010 22:59:49 +0000 (22:59 +0000)
committerEvan Winslow <evan.b.winslow@gmail.com>
Mon, 18 Oct 2010 22:59:49 +0000 (22:59 +0000)
views/default/html/tag.php

index 8ad6679b43e20bd9f5d1f59ddfa79be9c43a384d..c8a49dd61905c3d36259f241d4f337d6c93aef12 100644 (file)
@@ -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