From 5b8a7460d026d91f5c2411673f3b02be2b0e724d Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Thu, 18 Jun 2009 01:27:35 +0000 Subject: cleaned up the tagging code --- views/default/tidypics/tagging.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'views/default/tidypics') diff --git a/views/default/tidypics/tagging.php b/views/default/tidypics/tagging.php index fdf40b3a5..fcb0b8d4e 100644 --- a/views/default/tidypics/tagging.php +++ b/views/default/tidypics/tagging.php @@ -5,7 +5,7 @@ $file_guid = $vars['file_guid']; $viewer = $vars['viewer']; $owner = $vars['owner']; - $tag_texts = $vars['text']; + if ($photo_tags) { ?> @@ -13,8 +13,8 @@

@@ -59,9 +59,9 @@ if ($photo_tags) { echo elgg_echo('tidypics:deltag_title') . '
'; $content = ""; - foreach ($tag_texts as $id => $text) { + foreach ($links as $id => $text) { $name = "tags[{$id}]"; - $content .= elgg_view("input/checkboxes", array('options' => array($text => $text), 'internalname' => $name, 'value' => '' )); + $content .= elgg_view("input/checkboxes", array('options' => array($text[0] => $text[0]), 'internalname' => $name, 'value' => '' )); } $content .= "
"; -- cgit v1.2.3