make use of PMA_Message

This commit is contained in:
Sebastian Mendel
2007-10-17 10:08:21 +00:00
parent b53e28bd31
commit 6ee1069a9c

View File

@@ -150,8 +150,8 @@ function PMA_exportOutputHandler($line)
if ($GLOBALS['save_on_server']) { if ($GLOBALS['save_on_server']) {
$write_result = @fwrite($GLOBALS['file_handle'], $dump_buffer); $write_result = @fwrite($GLOBALS['file_handle'], $dump_buffer);
if (!$write_result || ($write_result != strlen($dump_buffer))) { if (!$write_result || ($write_result != strlen($dump_buffer))) {
$GLOBALS['message'] = sprintf($GLOBALS['strNoSpace'], htmlspecialchars($save_filename)); $GLOBALS['message'] = PMA_Message::error('strNoSpace');
$GLOBALS['show_error_header'] = true; $GLOBALS['message']->addParam($save_filename);
return false; return false;
} }
} else { } else {
@@ -172,8 +172,8 @@ function PMA_exportOutputHandler($line)
if ($GLOBALS['save_on_server'] && strlen($line) > 0) { if ($GLOBALS['save_on_server'] && strlen($line) > 0) {
$write_result = @fwrite($GLOBALS['file_handle'], $line); $write_result = @fwrite($GLOBALS['file_handle'], $line);
if (!$write_result || ($write_result != strlen($line))) { if (!$write_result || ($write_result != strlen($line))) {
$GLOBALS['message'] = sprintf($GLOBALS['strNoSpace'], htmlspecialchars($save_filename)); $GLOBALS['message'] = PMA_Message::error('strNoSpace');
$GLOBALS['show_error_header'] = true; $GLOBALS['message']->addParam($save_filename);
return false; return false;
} }
$time_now = time(); $time_now = time();