diff --git a/tagselect.inc.php b/tagselect.inc.php
index 72cfcf2..76d98fc 100755
--- a/tagselect.inc.php
+++ b/tagselect.inc.php
@@ -1,20 +1,32 @@
{$name}
\n";
- }
- // End Of Plugin Output
- $result = <<< EOPO
+ $args = func_get_args();
+ $argnum = func_num_args();
+
+ $tags = "";
+ $elenum = 0;
+ foreach($args as $name) {
+ $tags .= "{$name}";
+ if($elenum == 4) {
+ $tags .= "
\n";
+ $elenum = 0;
+ }
+ else {
+ $tags .= " \n";
+ $elenum++;
+ }
+ }
+ if($elenum != 0) {
+ $tags .= "
\n";
+ }
+ // End Of Plugin Output
+ $result = <<< EOPO