Permalink
Browse files

Fixed up default-sized tables again

  • Loading branch information...
1 parent 7fd6bb7 commit 1e22462d012a45924afbd61c45f5d36836e91429 martin committed Sep 23, 2002
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/moodlelib.php
View
@@ -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.