Selaa lähdekoodia

More fixes due to R2L implementation (bugs were posted to squirrel-devel)
The bug in listcommands was an extra <tr> tag.
The bug in read_body.php was a misplaced do_hook (line #793).

stakadush 23 vuotta sitten
vanhempi
commit
f5805fee6f
2 muutettua tiedostoa jossa 6 lisäystä ja 8 poistoa
  1. 0 1
      plugins/listcommands/setup.php
  2. 6 7
      src/read_body.php

+ 0 - 1
plugins/listcommands/setup.php

@@ -110,7 +110,6 @@ function plugin_listcommands_menu() {
     }
     }
 
 
     if (count($output) > 0) {
     if (count($output) > 0) {
-        echo "<tr>";
         echo html_tag( 'tr',
         echo html_tag( 'tr',
                     html_tag( 'td', str_replace(' ', '&nbsp;', _("Mailing List:")), 'right', $color[0]) .
                     html_tag( 'td', str_replace(' ', '&nbsp;', _("Mailing List:")), 'right', $color[0]) .
                     html_tag( 'td',
                     html_tag( 'td',

+ 6 - 7
src/read_body.php

@@ -786,13 +786,12 @@ echo '</small></td>' .
     ' </tr>';
     ' </tr>';
 
 
 /** from **/
 /** from **/
-echo html_tag( 'tr', "\n" .
-            html_tag( 'td', _("From:"), 'right', $color[0], 'valign="top"' ) .
-            html_tag( 'td',
-                '<b>' . $from_name . '</b>&nbsp;' . "\n" ,
-            'left', $color[0] )
-       ) . "\n";
-       do_hook("read_body_after_from");
+echo html_tag( 'tr') . "\n" .
+    html_tag( 'td', _("From:"), 'right', $color[0], 'valign="top"' ) .
+    html_tag( 'td', '', 'left', $color[0] ) .
+        '<b>' . $from_name . '</b>&nbsp;&nbsp;';
+   do_hook("read_body_after_from");
+echo "&nbsp;\n" . '</td></tr>';
 /** date **/
 /** date **/
 echo html_tag( 'tr', "\n" .
 echo html_tag( 'tr', "\n" .
             html_tag( 'td', _("Date:"), 'right', $color[0], 'valign="top"' ) .
             html_tag( 'td', _("Date:"), 'right', $color[0], 'valign="top"' ) .