From 67d6d5327db1b410bc4e1491a9f06e769175a41e Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 18 Oct 2007 12:23:01 +0000 Subject: [PATCH] cleanup --- libraries/select_server.lib.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libraries/select_server.lib.php b/libraries/select_server.lib.php index 2107e3b7e2..c5d921162f 100644 --- a/libraries/select_server.lib.php +++ b/libraries/select_server.lib.php @@ -9,21 +9,19 @@ /** * display server selection in list or selectbox form, or option tags only * - * @globals $lang - * @globals $convcharset * @uses $GLOBALS['cfg']['DisplayServersList'] * @uses $GLOBALS['strServer'] * @uses $GLOBALS['cfg']['Servers'] * @uses $GLOBALS['strGo'] * @uses implode() * @uses htmlspecialchars() + * @uses PMA_generate_common_hidden_inputs() + * @uses PMA_generate_common_url() * @param boolean $not_only_options whether to include form tags or not * @param boolean $ommit_fieldset whether to ommit fieldset tag or not */ function PMA_select_server($not_only_options, $ommit_fieldset) { - global $lang, $convcharset; - // Show as list? if ($not_only_options) { $list = $GLOBALS['cfg']['DisplayServersList']; @@ -34,6 +32,7 @@ function PMA_select_server($not_only_options, $ommit_fieldset) if ($not_only_options) { echo '
'; + echo PMA_generate_common_hidden_inputs(); if (! $ommit_fieldset) { echo '
'; @@ -84,20 +83,21 @@ function PMA_select_server($not_only_options, $ommit_fieldset) if ($selected && !$ommit_fieldset) { echo '' . htmlspecialchars($label) . ''; } else { - echo '' . htmlspecialchars($label) . ''; + + echo '' . htmlspecialchars($label) . ''; } echo ''; } else { - echo ' ' . "\n"; + echo '' . "\n"; } } // end while if ($not_only_options) { echo ''; - ?> - - - '; echo '';