Move avoid_cache to end, it is not used so often as size

This commit is contained in:
Michal Čihař 2011-08-04 15:02:32 +02:00
parent 3a10de866c
commit 94ac586dba
4 changed files with 3 additions and 4 deletions

View File

@ -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 = "";

View File

@ -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();
}

View File

@ -40,7 +40,6 @@ if ($result === false) {
PMA_download_header(
$table . '-' . $transform_key . '.bin',
PMA_detectMIME($result),
true,
strlen($result));
echo $result;
?>

View File

@ -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();