Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed up default-sized tables again

  • Loading branch information...
commit 1e22462d012a45924afbd61c45f5d36836e91429 1 parent 7fd6bb7
martin authored

Showing 1 changed file with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. +9 1 lib/moodlelib.php
10 lib/moodlelib.php
@@ -215,9 +215,17 @@ function print_table($table) {
215 215 $table->width = "80%";
216 216 }
217 217
  218 + if (!$table->cellpadding) {
  219 + $table->cellpadding = "5";
  220 + }
  221 +
  222 + if (!$table->cellspacing) {
  223 + $table->cellspacing = "1";
  224 + }
  225 +
218 226 print_simple_box_start("CENTER", "$table->width", "#FFFFFF", 0);
219 227 echo "<TABLE WIDTH=100% BORDER=0 valign=top align=center ";
220   - echo " cellpadding=\"$cellpadding\" cellspacing=\"$cellspacing\">\n";
  228 + echo " cellpadding=\"$table->cellpadding\" cellspacing=\"$table->cellspacing\">\n";
221 229
222 230 if ($table->head) {
223 231 echo "<TR>";

0 comments on commit 1e22462

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