From 15bafa3c336e8ee16639a4884564fb2658d74c3c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 19 Jul 2008 15:15:59 +0000 Subject: [PATCH] no custom color picker if JS is not active --- libraries/url_generating.lib.php | 5 ++++- main.php | 26 ++++++++++++++++---------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/libraries/url_generating.lib.php b/libraries/url_generating.lib.php index 26e7dfa08..f93e74c70 100644 --- a/libraries/url_generating.lib.php +++ b/libraries/url_generating.lib.php @@ -124,8 +124,11 @@ function PMA_getHiddenFields($values, $pre = '') if (is_array($value)) { $fields .= PMA_getHiddenFields($value, $name); } else { + // do not generate an ending "\n" because + // PMA_generate_common_hidden_inputs() is sometimes called + // from a JS document.write() $fields .= '' . "\n"; + . '" value="' . htmlspecialchars($value) . '" />'; } } diff --git a/main.php b/main.php index d14793a9a..9531fae71 100644 --- a/main.php +++ b/main.php @@ -149,16 +149,22 @@ if ($GLOBALS['cfg']['ThemeManager']) { echo '
  • '; echo $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox(); echo '
  • '; - echo '
  • '; - echo $strCustomColor . ': '; - echo '[r]'; - echo '
    '; - echo PMA_generate_common_hidden_inputs(); - echo ''; - echo ''; - echo ''; - echo '
    '; - echo '
  • '; +?> + + '; echo PMA_Config::getFontsizeForm();