From 166660ebbfb9f147b71b01950e982f5aaddde7dc Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 1 Nov 2005 07:53:26 +0000 Subject: [PATCH] bug #1342332 Error messages wrongly formatted. --- ChangeLog | 4 +++ libraries/common.lib.php | 74 +++++++++++++++++----------------------- 2 files changed, 35 insertions(+), 43 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29aa8e055..4dd177b19 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-11-01 Sebastian Mendel + * libraries/common.lib.php: + bug #1342332 Error messages wrongly formatted. + 2005-10-31 Sebastian Mendel * themes/*/css/theme_right.css.php: - use right image path diff --git a/libraries/common.lib.php b/libraries/common.lib.php index d5bdc7efe..74a9405b5 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1905,37 +1905,33 @@ window.parent.updateTableTitle( '', ' + ?>
- -

- - - - > - - - +
+

+ '; + } + + if ( $cfg['ShowSQL'] == TRUE + && ( !empty($GLOBALS['sql_query']) || !empty($GLOBALS['display_query']) ) ) { $local_query = !empty($GLOBALS['display_query']) ? $GLOBALS['display_query'] : (($cfg['SQP']['fmtType'] == 'none' && isset($GLOBALS['unparsed_sql']) && $GLOBALS['unparsed_sql'] != '') ? $GLOBALS['unparsed_sql'] : $GLOBALS['sql_query']); // Basic url query part $url_qpart = '?' . PMA_generate_common_url(isset($GLOBALS['db']) ? $GLOBALS['db'] : '', isset($GLOBALS['table']) ? $GLOBALS['table'] : ''); - echo "\n"; - ?> -
- - - ' . "\n"; + echo ''; } } - echo "\n"; - ?> -
- " and not "
") @@ -2122,34 +2118,26 @@ window.parent.updateTableTitle( '', '' . $GLOBALS['strSQLQuery'] . ': '; - echo '
' . "\n"; - echo ' ' . $query_base; + echo '
' . "\n"; + echo ' ' . $GLOBALS['strSQLQuery'] . ':'; + echo ' ' . $query_base; - unset($local_query); //Clean up the end of the PHP if (!empty($GLOBALS['show_as_php'])) { echo '\';'; } - echo "\n"; - ?> -
'; + echo '' . "\n"; + + if ( ! empty( $edit_target ) ) { + echo '
'; echo $edit_link . $explain_link . $php_link . $refresh_link . $validate_link; - echo '
- -
- + ?>