Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Mendel <cybot_tm@users.sourceforge.net>2007-10-17 14:08:21 +0400
committerSebastian Mendel <cybot_tm@users.sourceforge.net>2007-10-17 14:08:21 +0400
commit6ee1069a9c2ecaa7435c902a44693df9eccba13b (patch)
treee7138a7a072f6a95a047ddf21ea6a7c90e61df39 /export.php
parentb53e28bd31fdaa177a4ff29314ed94b4eb1318f8 (diff)
make use of PMA_Message
Diffstat (limited to 'export.php')
-rw-r--r--export.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/export.php b/export.php
index 2f5eb4b4ff..6cbf949028 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();