Correct HTML colspan.
Patch by wyntarvox
diffs (21 lines):
diff -r a4021cffa7e5 -r 8184ab31bbf8 cgi-bin/LJ/Widget/ShopCart.pm
--- a/cgi-bin/LJ/Widget/ShopCart.pm Sat Aug 22 17:55:38 2009 +0000
+++ b/cgi-bin/LJ/Widget/ShopCart.pm Sat Aug 22 18:10:49 2009 +0000
@@ -41,6 +41,8 @@ sub render_body {
unless $cart->state == $DW::Shop::STATE_OPEN;
$opts{receipt} = 1
if $opts{admin};
+
+ my $colspan = $opts{receipt} ? 5 : 6;
$ret .= $class->start_form
unless $opts{receipt};
@@ -92,7 +94,7 @@ sub render_body {
}
$ret .= "</tr>";
}
- $ret .= "<tr><td colspan='6' class='total'>" . $class->ml(
'widget.shopcart.total' ) . " \$" . $cart->display_total . " USD</td></tr>";
+ $ret .= "<tr><td colspan='" . $colspan . "' class='total'>" . $class->ml(
'widget.shopcart.total' ) . " \$" . $cart->display_total . " USD</td></tr>";
$ret .= "</table>";
unless ( $opts{receipt} ) {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog