Permalink
Browse files

Fix function name: PMA_download_header -> PMA_downloadHeader

  • Loading branch information...
madhuracj committed Jun 1, 2012
1 parent 381ae7b commit 10510e16b4973f096b0ca05217dda8701f60da7c
View
@@ -365,7 +365,7 @@ function PMA_exportOutputHandler($line)
@ini_set('url_rewriter.tags', '');
$filename = PMA_sanitize_filename($filename);
- PMA_download_header($filename, $mime_type);
+ PMA_downloadHeader($filename, $mime_type);
} else {
// HTML
if ($export_type == 'database') {
View
@@ -96,7 +96,7 @@ function Error($error_message = '')
function Download($filename)
{
$pdfData = $this->getPDFData();
- PMA_download_header($filename, 'application/pdf', strlen($pdfData));
+ PMA_downloadHeader($filename, 'application/pdf', strlen($pdfData));
echo $pdfData;
}
}
View
@@ -612,7 +612,7 @@ function PMA_no_cache_header()
*
* @return void
*/
-function PMA_download_header($filename, $mimetype, $length = 0, $no_cache = true)
+function PMA_downloadHeader($filename, $mimetype, $length = 0, $no_cache = true)
{
if ($no_cache) {
PMA_no_cache_header();
@@ -155,7 +155,7 @@ private function _toFile($file_name, $type, $ext)
ob_clean();
- PMA_download_header($file_name, $type);
+ PMA_downloadHeader($file_name, $type);
}
/**
@@ -176,7 +176,7 @@ function showOutput($fileName)
ob_end_clean();
}
$output = $this->flush();
- PMA_download_header(
+ PMA_downloadHeader(
$fileName . '.dia', 'application/x-dia-diagram', strlen($output)
);
print $output;
@@ -357,7 +357,7 @@ function showOutput($fileName)
//ob_end_clean();
//}
$output = $this->stringCommands;
- PMA_download_header($fileName . '.eps', 'image/x-eps', strlen($output));
+ PMA_downloadHeader($fileName . '.eps', 'image/x-eps', strlen($output));
print $output;
}
}
@@ -182,7 +182,7 @@ function showOutput($fileName)
{
//ob_get_clean();
$output = $this->flush();
- PMA_download_header($fileName . '.svg', 'image/svg+xml', strlen($output));
+ PMA_downloadHeader($fileName . '.svg', 'image/svg+xml', strlen($output));
print $output;
}
@@ -162,7 +162,7 @@ function showOutput($fileName)
//ob_end_clean();
//}
$output = $this->flush();
- PMA_download_header($fileName . '.vdx', 'application/visio', strlen($output));
+ PMA_downloadHeader($fileName . '.vdx', 'application/visio', strlen($output));
print $output;
}
}
View
@@ -24,7 +24,7 @@
if (isset($_POST['submit_export']) && filter_input(INPUT_POST, 'export_type') == 'text_file') {
// export to JSON file
$filename = 'phpMyAdmin-config-' . urlencode(PMA_getenv('HTTP_HOST')) . '.json';
- PMA_download_header($filename, 'application/json');
+ PMA_downloadHeader($filename, 'application/json');
$settings = PMA_load_userprefs();
echo json_encode($settings['config_data']);
return;
View
@@ -38,7 +38,7 @@
//
// Output generated config file
//
- PMA_download_header('config.inc.php', 'text/plain');
+ PMA_downloadHeader('config.inc.php', 'text/plain');
echo ConfigGenerator::getConfigFile();
exit;
} elseif (PMA_ifSetOr($_POST['submit_save'], '')) {
View
@@ -39,7 +39,7 @@
/* Avoid corrupting data */
@ini_set('url_rewriter.tags', '');
-PMA_download_header(
+PMA_downloadHeader(
$table . '-' . $transform_key . '.bin',
PMA_detectMIME($result),
strlen($result)
View
@@ -135,7 +135,7 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
$dump .= $entry['statement'];
}
$filename = 'log_' . htmlspecialchars($_REQUEST['table']) . '.sql';
- PMA_download_header($filename, 'text/x-sql', strlen($dump));
+ PMA_downloadHeader($filename, 'text/x-sql', strlen($dump));
echo $dump;
exit();
@@ -99,7 +99,7 @@
. (isset($mime_options['charset']) ? $mime_options['charset'] : '');
}
-PMA_download_header($cn, $mime_type);
+PMA_downloadHeader($cn, $mime_type);
if (! isset($resize)) {
echo $row[$transform_key];
View
@@ -45,7 +45,7 @@
$ini_file .= $key . '=' . $value . "\n";
}
-PMA_download_header($name, 'application/webapp', 0, false);
+PMA_downloadHeader($name, 'application/webapp', 0, false);
$zip = new zipfile;
$zip->setDoWrite();

0 comments on commit 10510e1

Please sign in to comment.