From ddd265fb6246ab0088ec1259c745c7b5171350f6 Mon Sep 17 00:00:00 2001 From: lorilee Date: Fri, 18 Jun 2010 16:22:52 -0400 Subject: [PATCH] Fixed XHTML syntax problems --- libraries/plugin_interface.lib.php | 39 ++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/libraries/plugin_interface.lib.php b/libraries/plugin_interface.lib.php index 5a982cc43..cb258ab9c 100644 --- a/libraries/plugin_interface.lib.php +++ b/libraries/plugin_interface.lib.php @@ -162,12 +162,11 @@ function PMA_pluginGetChoice($section, $name, &$list, $cfgname = NULL) $ret = '' . "\n"; @@ -179,7 +178,7 @@ function PMA_pluginGetChoice($section, $name, &$list, $cfgname = NULL) } else { $ret .= 'false'; } - $ret .= '">'. "\n"; + $ret .= '" />'. "\n"; } return $ret; } @@ -252,21 +251,30 @@ function PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt) if($key == $default) { $ret .= 'checked="checked"'; } - $ret .= '>' . ''; + $ret .= ' />' . ''; } } elseif ($opt['type'] == 'hidden') { - $ret .= ''; + $ret .= '
  • '; } elseif ($opt['type'] == 'begin_group') { - $ret .= '

    ' . PMA_getString($opt['text']) . '

    '; } else { /* This should be seen only by plugin writers, so I do not thing this * needs translation. */ @@ -280,6 +288,10 @@ function PMA_pluginGetOneOption($section, $plugin_name, $id, &$opt) } } + // Close the list element after $opt['doc'] link is displayed + if($opt['type'] == 'bool' || $opt['type'] == 'text' || $opt['type'] == 'message_only' || $opt['type'] == 'select') { + $ret .= ''; + } $ret .= "\n"; return $ret; } @@ -308,18 +320,19 @@ function PMA_pluginGetOptions($section, &$list) } else { $ret .= ' style="display: none;">'; } - $ret .= '
    '; + $ret .= ''; } return $ret; }