OSDN Git Service

FIX: listplug_table_categorylist()のバグ修正
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Mar 2012 00:35:53 +0000 (09:35 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Mar 2012 00:35:53 +0000 (09:35 +0900)
以下の2点
・改行をシングルクォートしていた
・ダブルクォーテーションの中で変数を展開する際、開始記号に「}」を使っていた

nucleus/libs/showlist.php

index 3943413..90a489e 100644 (file)
@@ -698,9 +698,9 @@ function listplug_table_categorylist($template, $type)
                        echo "<td>\n";
                        echo "<input type=\"checkbox\" id=\"batch{$id}\" name=\"batch[{$id}]\" value=\"{$current->catid}\" />\n";
                        echo "<label for=\"batch{$id}\">{$current->cname}</label>\n";
-                       echo '</td>\n';
+                       echo "</td>\n";
                        echo "<td>{$current->cdesc}</td>\n";
-                       echo "<td><a href=\"index.php?action=categoryedit&amp;blogid=}$current->cblog}&amp;catid={$current->catid}\" tabindex=\"{$template['tabindex']}\">" . _LISTS_EDIT . "</a></td>\n";
+                       echo "<td><a href=\"index.php?action=categoryedit&amp;blogid={$current->cblog}&amp;catid={$current->catid}\" tabindex=\"{$template['tabindex']}\">" . _LISTS_EDIT . "</a></td>\n";
                        echo "<td><a href=\"index.php?action=categorydelete&amp;blogid={$current->cblog}&amp;catid={$current->catid}\" tabindex=\"{$template['tabindex']}\">" . _LISTS_DELETE . "</a></td>\n";
                        break;
        }