瀏覽代碼

Fix html errors that cause display problems in NS4. Thanks "ME".

Thijs Kinkhorst 22 年之前
父節點
當前提交
9afee0cda8
共有 3 個文件被更改,包括 6 次插入5 次删除
  1. 1 0
      ChangeLog
  2. 1 1
      plugins/squirrelspell/sqspell_functions.php
  3. 4 4
      src/options_highlight.php

+ 1 - 0
ChangeLog

@@ -31,6 +31,7 @@ Version 1.4.0 RC 2
   - Obsolete sqm_topdir(), which caused login trouble with installs that
     have open_basedir restrictions. Thanks Jimmy Connor.
   - Fix broken abook_take plugin.
+  - Fix HTML errors that caused display problems in NS4.
 	
 Version 1.4.0 RC 1
 ------------------

+ 1 - 1
plugins/squirrelspell/sqspell_functions.php

@@ -79,7 +79,7 @@ function sqspell_makePage($title, $scriptsrc, $body){
           ) . "\n"
     . html_tag( 'tr',
           html_tag( 'td', 'SquirrelSpell ' . $SQSPELL_VERSION, 'center', $color[9] )
-      ) . "\n";
+      ) . "\n</table>\n";
 }
 
 /**

+ 4 - 4
src/options_highlight.php

@@ -108,15 +108,15 @@ html_tag( 'table', "\n" .
     html_tag( 'tr', "\n" .
         html_tag( 'td', '<center><b>' . _("Options") . ' - ' . _("Message Highlighting") . '</b></center>', 'left')
     ),
-    'center', $color[9], 'width="95% border="0" cellpadding="1" cellspacing="0"' ) . "<br>\n" .
-html_tag( 'table', '', '', '', 'width="100% border="0" cellpadding="1" cellspacing="0"' ) . 
+    'center', $color[9], 'width="95%" border="0" cellpadding="1" cellspacing="0"' ) . "<br>\n" .
+html_tag( 'table', '', '', '', 'width="100%" border="0" cellpadding="1" cellspacing="0"' ) . 
      html_tag( 'tr' ) . "\n" .
          html_tag( 'td', '', 'left' );
 
 echo '<center>[<a href="options_highlight.php?action=add">' . _("New") . '</a>]'.
         ' - [<a href="options.php">'._("Done").'</a>]</center><br>'."\n";
 if (count($message_highlight_list) >= 1) {
-    echo html_tag( 'table', '', 'center', '', 'width="80% border="0" cellpadding="3" cellspacing="0"' ) . "\n";
+    echo html_tag( 'table', '', 'center', '', 'width="80%" border="0" cellpadding="3" cellspacing="0"' ) . "\n";
     for ($i=0; $i < count($message_highlight_list); $i++) {
         $match_type = '';
         switch ($message_highlight_list[$i]['match_type'] ) {
@@ -436,4 +436,4 @@ if ($action == 'edit' || $action == 'add') {
 }
 do_hook('options_highlight_bottom');
 ?>
-</body></html>
+</table></body></html>