PMA_showMessage(): removed obsolete check for $show_error_header

This commit is contained in:
Sebastian Mendel
2007-10-17 10:10:17 +00:00
parent 6ee1069a9c
commit 1454a3e599

View File

@@ -1012,10 +1012,6 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice')
unset($tbl_status); unset($tbl_status);
echo '<div align="' . $GLOBALS['cell_align_left'] . '">' . "\n"; echo '<div align="' . $GLOBALS['cell_align_left'] . '">' . "\n";
if (!empty($GLOBALS['show_error_header'])) {
echo '<div class="error">' . "\n";
echo '<h1>' . $GLOBALS['strError'] . '</h1>' . "\n";
}
if ($message instanceof PMA_Message) { if ($message instanceof PMA_Message) {
$message->display(); $message->display();
@@ -1029,10 +1025,6 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice')
echo '</div>'; echo '</div>';
} }
if (!empty($GLOBALS['show_error_header'])) {
echo '</div>';
}
if ($cfg['ShowSQL'] == true && ! empty($sql_query)) { if ($cfg['ShowSQL'] == true && ! empty($sql_query)) {
// Basic url query part // Basic url query part
$url_qpart = '?' . PMA_generate_common_url($GLOBALS['db'], $GLOBALS['table']); $url_qpart = '?' . PMA_generate_common_url($GLOBALS['db'], $GLOBALS['table']);