Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed up default-sized tables again

  • Loading branch information...
commit 1e22462d012a45924afbd61c45f5d36836e91429 1 parent 7fd6bb7
martin authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/moodlelib.php
View
10 lib/moodlelib.php
@@ -215,9 +215,17 @@ function print_table($table) {
$table->width = "80%";
}
+ if (!$table->cellpadding) {
+ $table->cellpadding = "5";
+ }
+
+ if (!$table->cellspacing) {
+ $table->cellspacing = "1";
+ }
+
print_simple_box_start("CENTER", "$table->width", "#FFFFFF", 0);
echo "<TABLE WIDTH=100% BORDER=0 valign=top align=center ";
- echo " cellpadding=\"$cellpadding\" cellspacing=\"$cellspacing\">\n";
+ echo " cellpadding=\"$table->cellpadding\" cellspacing=\"$table->cellspacing\">\n";
if ($table->head) {
echo "<TR>";

0 comments on commit 1e22462

Please sign in to comment.
Something went wrong with that request. Please try again.