Skip to content
Browse files

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

  • Loading branch information...
1 parent 3a10de8 commit 94ac586dba53e361d59503b1e934809539df454b @nijel nijel committed Aug 4, 2011
Showing with 3 additions and 4 deletions.
  1. +1 −1 bs_disp_as_mime_type.php
  2. +1 −1 libraries/core.lib.php
  3. +0 −1 tbl_get_field.php
  4. +1 −1 webapp.php
View
2 bs_disp_as_mime_type.php
@@ -43,7 +43,7 @@
$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
2 libraries/core.lib.php
@@ -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
1 tbl_get_field.php
@@ -40,7 +40,6 @@
PMA_download_header(
$table . '-' . $transform_key . '.bin',
PMA_detectMIME($result),
- true,
strlen($result));
echo $result;
?>
View
2 webapp.php
@@ -44,7 +44,7 @@
$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();

0 comments on commit 94ac586

Please sign in to comment.
Something went wrong with that request. Please try again.