fix torrenttable() action render

This commit is contained in:
xiaomlove
2025-12-11 11:27:12 +07:00
parent 70bc00b707
commit f97d564ada
+4 -2
View File
@@ -3827,10 +3827,12 @@ foreach ($rows as $row)
if (user_can('torrentmanage')) if (user_can('torrentmanage'))
{ {
$actions = [];
if (user_can('torrent-delete')) { if (user_can('torrent-delete')) {
print("<td class=\"rowfollow\"><a href=\"".htmlspecialchars("fastdelete.php?id=".$row['id'])."\"><img class=\"staff_delete\" src=\"pic/trans.gif\" alt=\"D\" title=\"".$lang_functions['text_delete']."\" /></a></td>"); $actions[] = "<a href=\"".htmlspecialchars("fastdelete.php?id=".$row['id'])."\"><img class=\"staff_delete\" src=\"pic/trans.gif\" alt=\"D\" title=\"".$lang_functions['text_delete']."\" /></a>";
} }
print("<br /><a href=\"edit.php?returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "&amp;id=" . $row["id"] . "\"><img class=\"staff_edit\" src=\"pic/trans.gif\" alt=\"E\" title=\"".$lang_functions['text_edit']."\" /></a></td>\n"); $actions[] = "<a href=\"edit.php?returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "&amp;id=" . $row["id"] . "\"><img class=\"staff_edit\" src=\"pic/trans.gif\" alt=\"E\" title=\"".$lang_functions['text_edit']."\" /></a>";
echo sprintf("<td class=\"rowfollow\">%s</td>", implode("<br />", $actions));
} }
print("</tr>\n"); print("</tr>\n");
$counter++; $counter++;