]> git.mjollnir.org Git - moodle.git/commitdiff
Small changes to help display of Japanese and on Netscape
authormoodler <moodler>
Sat, 7 Dec 2002 08:44:21 +0000 (08:44 +0000)
committermoodler <moodler>
Sat, 7 Dec 2002 08:44:21 +0000 (08:44 +0000)
lib/moodlelib.php

index ca7f5ecf209512517bbca554a87d43e2529c4b99..fee36b81b1d0e2df5294677aeae095e3cce87b71 100644 (file)
@@ -32,6 +32,10 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
         $navigation = "";
     }
 
+    if ($button == "") {
+        $button = "&nbsp;";
+    }
+
     if (!$menu and $navigation) {
         if (isset($USER->id)) {
             $menu = "<FONT SIZE=2><A TARGET=_parent HREF=\"$CFG->wwwroot/login/logout.php\">".get_string("logout")."</A></FONT>";
@@ -300,7 +304,7 @@ function print_table($table) {
     if ($table->head) {
         echo "<TR>";
         foreach ($table->head as $key => $heading) {
-            echo "<TH VALIGN=top ".$align[$key].$size[$key].">$heading</TH>";
+            echo "<TH VALIGN=top ".$align[$key].$size[$key]." NOWRAP>$heading</TH>";
         }
         echo "</TR>\n";
     }