Additional fixes in calls to parent constructors.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 13 Oct 2017 20:53:53 +0000 (22:53 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 29 Oct 2017 12:05:02 +0000 (13:05 +0100)
reporting/includes/Workbook.php
reporting/includes/excel_report.inc

index fd314ea7b144702929c30bb07508ee04d12fc6f8..7e64a1b3a1320beb6358fe9fa8f0c2b10ddb52b4 100644 (file)
@@ -4150,7 +4150,7 @@ class Spreadsheet_Excel_Writer_Worksheet extends Spreadsheet_Excel_Writer_BIFFwr
                                                 &$url_format, &$parser)
     {
         // It needs to call its parent's constructor explicitly
-        $this->Spreadsheet_Excel_Writer_BIFFwriter();
+        parent::__construct();
         $this->_BIFF_version   = $BIFF_version;
         $rowmax                = 65536; // 16384 in Excel 5
         $colmax                = 256;
@@ -7415,7 +7415,7 @@ class Spreadsheet_Excel_Writer_Workbook extends Spreadsheet_Excel_Writer_BIFFwri
     function __construct($filename)
     {
         // It needs to call its parent's constructor explicitly
-        $this->Spreadsheet_Excel_Writer_BIFFwriter();
+        parent::__construct();
 
         $this->_filename         = $filename;
         $this->_parser           = new Spreadsheet_Excel_Writer_Parser($this->_byte_order, $this->_BIFF_version);
index 08ab6aeb7dc7dd57ef1580e503a5221f6f7b1079..483d0fde157170d2d66fd99dc390d856908f6a83 100644 (file)
@@ -84,7 +84,7 @@ class FrontReport extends Spreadsheet_Excel_Writer_Workbook
                $this->filename = $filename.".xls";
                $this->unique_name = random_id().".xls";
                $this->path = company_path(). '/pdf_files';
-               $this->Spreadsheet_Excel_Writer_Workbook($this->path."/".$this->unique_name);
+               parent::__construct($this->path."/".$this->unique_name);
                if ($this->code != "iso-8859-1")
                        $this->setVersion(8); // set biff version to 8 (0x0006 internal)
                $this->sheet = $this->addWorksheet($this->worksheetNameGenerator($this->title));