@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | $fileName = 'DGII_606_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt'; |
90 | 90 | $commonFunctions->exportTXT('606', $fileName, $this->empresa->cifnif, $year, $month, $whereReport); |
91 | 91 | $this->response->headers->set('Content-type', 'text/plain'); |
92 | - $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName); |
|
93 | - $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName)); |
|
92 | + $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName); |
|
93 | + $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName)); |
|
94 | 94 | } |
95 | 95 | break; |
96 | 96 | case "FiscalReport607": |
@@ -102,8 +102,8 @@ discard block |
||
102 | 102 | $fileName = 'DGII_607_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt'; |
103 | 103 | $commonFunctions->exportTXT('607', $fileName, $this->empresa->cifnif, $year, $month, $whereReport); |
104 | 104 | $this->response->headers->set('Content-type', 'text/plain'); |
105 | - $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName); |
|
106 | - $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName)); |
|
105 | + $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName); |
|
106 | + $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName)); |
|
107 | 107 | $this->setTemplate(false); |
108 | 108 | } |
109 | 109 | break; |
@@ -117,8 +117,8 @@ discard block |
||
117 | 117 | $fileName = 'DGII_608_'.$this->empresa->cifnif.'_'.$year.'_'.$month.'.txt'; |
118 | 118 | $commonFunctions->exportTXT('608', $fileName, $this->empresa->cifnif, $year, $month, $whereReport); |
119 | 119 | $this->response->headers->set('Content-type', 'text/plain'); |
120 | - $this->response->headers->set('Content-Disposition', 'attachment;filename=' . $fileName); |
|
121 | - $this->response->setContent(file_get_contents(\FS_FOLDER . DIRECTORY_SEPARATOR . $fileName)); |
|
120 | + $this->response->headers->set('Content-Disposition', 'attachment;filename='.$fileName); |
|
121 | + $this->response->setContent(file_get_contents(\FS_FOLDER.DIRECTORY_SEPARATOR.$fileName)); |
|
122 | 122 | } |
123 | 123 | break; |
124 | 124 | default: |