Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e45a559153
@ -88,6 +88,7 @@ VerboseMultiSubmit, ReplaceHelpImg
|
||||
- Upgraded CodeMirror to 2.37
|
||||
- bug #2951 [export] Correctly export decimal fields.
|
||||
- bug #3762 [core] Make Advisor work on Windows withou COM extension.
|
||||
- bug #3519 [export] Prevent infinite recursion in PDF export.
|
||||
|
||||
3.5.7.0 (not yet released)
|
||||
- bug #3779 [core] Problem with backslash in enum fields
|
||||
|
||||
@ -658,7 +658,7 @@ do {
|
||||
}
|
||||
// We export just one table
|
||||
// $allrows comes from the form when "Dump all rows" has been selected
|
||||
if ($allrows == '0' && $limit_to > 0 && $limit_from >= 0) {
|
||||
if (isset($allrows) && $allrows == '0' && $limit_to > 0 && $limit_from >= 0) {
|
||||
$add_query = ' LIMIT '
|
||||
. (($limit_from > 0) ? $limit_from . ', ' : '')
|
||||
. $limit_to;
|
||||
@ -767,7 +767,7 @@ if (! empty($asfile)) {
|
||||
}
|
||||
} elseif ($compression == 'gzip') {
|
||||
// 3. as a gzipped file
|
||||
if (@function_exists('gzencode')
|
||||
if (@function_exists('gzencode')
|
||||
&& ! @ini_get('zlib.output_compression')
|
||||
// Here, we detect Apache's mod_deflate so we bet that
|
||||
// this module is active for this instance of phpMyAdmin
|
||||
|
||||
@ -86,6 +86,11 @@ class PMA_ExportPdf extends PMA_PDF
|
||||
function Header()
|
||||
{
|
||||
global $maxY;
|
||||
// We don't want automatic page breaks while generating header
|
||||
// as this can lead to infinite recursion as auto generated page
|
||||
// will want header as well causing another page break
|
||||
// FIXME: Better approach might be to try to compact the content
|
||||
$this->SetAutoPageBreak(false);
|
||||
// Check if header for this page already exists
|
||||
if (! isset($this->headerset[$this->page])) {
|
||||
$fullwidth = 0;
|
||||
@ -152,6 +157,7 @@ class PMA_ExportPdf extends PMA_PDF
|
||||
}
|
||||
|
||||
$this->dataY = $maxY;
|
||||
$this->SetAutoPageBreak(true);
|
||||
}
|
||||
|
||||
function morepagestable($lineheight = 8)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user