Fixed: Action column was not rendered for deleted record.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 22 Nov 2008 22:08:25 +0000 (22:08 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 22 Nov 2008 22:08:25 +0000 (22:08 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrreport@332 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index 721271ae915eb7c813a48c39159e21e85b09ba31..e7c4b9af25c4fbdc38a625ceac018c04d5b59672 100644 (file)
@@ -227,7 +227,9 @@ function wrReportTableRowRender2($row, $format, $showActions) {
        // actions
        // wiki/Spezial:Bahnberichte?action=deletepreview&reportid=42
        if ($showActions) {
-               if (!isset($row['delete_date'])) $out .= '<td><a href="/wiki/Spezial:Bahnberichte?action=deletepreview&amp;reportid=' . $row['id'] . '">' . utf8_encode('Löschen...') . '</a></td>'; // TODO: Get rid of absolute URL
+               $out .= '<td>';
+               if (!isset($row['delete_date'])) $out .= '<a href="/wiki/Spezial:Bahnberichte?action=deletepreview&amp;reportid=' . $row['id'] . '">' . utf8_encode('Löschen...') . '</a>'; // TODO: Get rid of absolute URL
+               $out .= '</td>';
        }
        return $out . "</tr>\n";
 }