From 6061e38e1efbc799fbdf8d3fb298e722cbf0d9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 8 May 2014 10:31:20 +0200 Subject: [PATCH] Use class attribute instead of passing the value as parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/schema/Pdf_Relation_Schema.class.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index 9adb5e5229..edf44766d4 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -980,7 +980,6 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema * @param string $masterField The relation field in the master table * @param string $foreignTable The foreign table name * @param string $foreignField The relation field in the foreign table - * @param boolean $showInfo Whether to display table position or not * * @access private * @@ -989,19 +988,23 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema * @see _setMinMax */ private function _addRelation($masterTable, $masterField, $foreignTable, - $foreignField, $showInfo + $foreignField ) { if (! isset($this->_tables[$masterTable])) { $this->_tables[$masterTable] = new Table_Stats_Pdf( $masterTable, null, $this->pageNumber, - $this->_tablewidth, false, $showInfo + $this->_tablewidth, + $this->showKeys, + $this->tableDimension ); $this->_setMinMax($this->_tables[$masterTable]); } if (! isset($this->_tables[$foreignTable])) { $this->_tables[$foreignTable] = new Table_Stats_Pdf( $foreignTable, null, $this->pageNumber, - $this->_tablewidth, false, $showInfo + $this->_tablewidth, + $this->showKeys, + $this->tableDimension ); $this->_setMinMax($this->_tables[$foreignTable]); }