From 6ee1069a9c2ecaa7435c902a44693df9eccba13b Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 17 Oct 2007 10:08:21 +0000 Subject: [PATCH] make use of PMA_Message --- export.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/export.php b/export.php index 2f5eb4b4f..6cbf94902 100644 --- a/export.php +++ b/export.php @@ -150,8 +150,8 @@ function PMA_exportOutputHandler($line) if ($GLOBALS['save_on_server']) { $write_result = @fwrite($GLOBALS['file_handle'], $dump_buffer); if (!$write_result || ($write_result != strlen($dump_buffer))) { - $GLOBALS['message'] = sprintf($GLOBALS['strNoSpace'], htmlspecialchars($save_filename)); - $GLOBALS['show_error_header'] = true; + $GLOBALS['message'] = PMA_Message::error('strNoSpace'); + $GLOBALS['message']->addParam($save_filename); return false; } } else { @@ -172,8 +172,8 @@ function PMA_exportOutputHandler($line) if ($GLOBALS['save_on_server'] && strlen($line) > 0) { $write_result = @fwrite($GLOBALS['file_handle'], $line); if (!$write_result || ($write_result != strlen($line))) { - $GLOBALS['message'] = sprintf($GLOBALS['strNoSpace'], htmlspecialchars($save_filename)); - $GLOBALS['show_error_header'] = true; + $GLOBALS['message'] = PMA_Message::error('strNoSpace'); + $GLOBALS['message']->addParam($save_filename); return false; } $time_now = time();