1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Improve gzip export ratio (bug #387)

This commit is contained in:
Jakub Vrana
2014-02-23 18:02:43 -08:00
parent 990b3b8ccc
commit 7639ff8b95
3 changed files with 11 additions and 1 deletions

View File

@@ -496,3 +496,12 @@ function doc_link($paths) {
);
return ($paths[$jush] ? "<a href='$urls[$jush]$paths[$jush]' target='_blank' rel='noreferrer'><sup>?</sup></a>" : "");
}
/** Wrap gzencode() for usage in ob_start()
* @param string
* @return string
*/
function ob_gzencode($string) {
// ob_start() callback recieves an optional parameter $phase but gzencode() accepts optional parameter $level
return gzencode($string);
}