Move avoid_cache to end, it is not used so often as size
This commit is contained in:
parent
3a10de866c
commit
94ac586dba
@ -43,7 +43,7 @@ if ($fHnd === false) {
|
||||
|
||||
$f_size = $hdrs['Content-Length'];
|
||||
|
||||
PMA_download_header(basename($filename), $c_type, true, $f_size);
|
||||
PMA_download_header(basename($filename), $c_type, $f_size);
|
||||
|
||||
$pos = 0;
|
||||
$content = "";
|
||||
|
||||
@ -566,7 +566,7 @@ function PMA_no_cache_header()
|
||||
* @param $mimetype string MIME type to include in headers.
|
||||
* @return nothing
|
||||
*/
|
||||
function PMA_download_header($filename, $mimetype, $avoid_cache = true, $length = 0) {
|
||||
function PMA_download_header($filename, $mimetype, $length = 0, $avoid_cache = true) {
|
||||
if ($avoid_cache) {
|
||||
PMA_no_cache_header();
|
||||
}
|
||||
|
||||
@ -40,7 +40,6 @@ if ($result === false) {
|
||||
PMA_download_header(
|
||||
$table . '-' . $transform_key . '.bin',
|
||||
PMA_detectMIME($result),
|
||||
true,
|
||||
strlen($result));
|
||||
echo $result;
|
||||
?>
|
||||
|
||||
@ -44,7 +44,7 @@ foreach ($parameters as $key => $value) {
|
||||
$ini_file .= $key . '=' . $value . "\n";
|
||||
}
|
||||
|
||||
PMA_download_header($name, 'application/webapp', false);
|
||||
PMA_download_header($name, 'application/webapp', 0, false);
|
||||
|
||||
$zip = new zipfile;
|
||||
$zip->setDoWrite();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user