From 669a3c2d87fbcb4a7b38e74aa104073bf17df2a9 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Thu, 27 Sep 2007 14:43:44 +0000 Subject: [PATCH] check $GLOBALS['cfg']['PropertiesIconic'] inside PMA_buttonOrImage() and make use PMA_getIcon() --- libraries/common.lib.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 288a2ea41..902e0dbd8 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -2038,22 +2038,26 @@ function PMA_getUniqueCondition($handle, $fields_cnt, $fields_meta, $row, $force function PMA_buttonOrImage($button_name, $button_class, $image_name, $text, $image) { + if (false === $GLOBALS['cfg']['PropertiesIconic']) { + echo ' ' . "\n"; + return; + } + /* Opera has trouble with */ /* IE has trouble with ' . "\n"; } else { echo '' - . ($GLOBALS['cfg']['PropertiesIconic'] === 'both' ? ' ' . $text : '') . "\n"; + . ($GLOBALS['cfg']['PropertiesIconic'] === 'both' ? ' ' . htmlspecialchars($text) : '') . "\n"; } } // end function