Pass correct parameters to PDF schema methods

All these take string as a parameter not a boolean values (as returned
isset).

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2014-05-08 10:24:15 +02:00
parent 1ce78f82d3
commit b3f177ee98
3 changed files with 13 additions and 13 deletions

View File

@ -695,10 +695,10 @@ class PMA_Eps_Relation_Schema extends PMA_Export_Relation_Schema
global $eps,$db;
$this->setPageNumber($_POST['pdf_page_number']);
$this->setShowColor(isset($_POST['show_color']));
$this->setShowKeys(isset($_POST['show_keys']));
$this->setTableDimension(isset($_POST['show_table_dimension']));
$this->setAllTablesSameWidth(isset($_POST['all_tables_same_width']));
$this->setShowColor($_POST['show_color']);
$this->setShowKeys($_POST['show_keys']);
$this->setTableDimension($_POST['show_table_dimension']);
$this->setAllTablesSameWidth($_POST['all_tables_same_width']);
$this->setOrientation($_POST['orientation']);
$this->setExportType($_POST['export_type']);

View File

@ -828,11 +828,11 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema
global $pdf, $db;
$this->setPageNumber($_POST['pdf_page_number']);
$this->setShowGrid(isset($_POST['show_grid']));
$this->setShowColor(isset($_POST['show_color']));
$this->setShowKeys(isset($_POST['show_keys']));
$this->setTableDimension(isset($_POST['show_table_dimension']));
$this->setAllTablesSameWidth(isset($_POST['all_tables_same_width']));
$this->setShowGrid($_POST['show_grid']);
$this->setShowColor($_POST['show_color']);
$this->setShowKeys($_POST['show_keys']);
$this->setTableDimension($_POST['show_table_dimension']);
$this->setAllTablesSameWidth($_POST['all_tables_same_width']);
$this->setWithDataDictionary($_POST['with_doc']);
$this->setOrientation($_POST['orientation']);
$this->setPaper($_POST['paper']);

View File

@ -667,10 +667,10 @@ class PMA_Svg_Relation_Schema extends PMA_Export_Relation_Schema
global $svg,$db;
$this->setPageNumber($_POST['pdf_page_number']);
$this->setShowColor(isset($_POST['show_color']));
$this->setShowKeys(isset($_POST['show_keys']));
$this->setTableDimension(isset($_POST['show_table_dimension']));
$this->setAllTablesSameWidth(isset($_POST['all_tables_same_width']));
$this->setShowColor($_POST['show_color']);
$this->setShowKeys($_POST['show_keys']);
$this->setTableDimension($_POST['show_table_dimension']);
$this->setAllTablesSameWidth($_POST['all_tables_same_width']);
$this->setExportType($_POST['export_type']);
$svg = new PMA_SVG();