File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ public function create($output = false)
315315
316316 // Output pass
317317 header ('Content-Description: File Transfer ' );
318- header ('Content-Type: ' . self ::MIME_TYPE );
318+ header ('Content-Type: ' . static ::MIME_TYPE );
319319 header ('Content-Disposition: attachment; filename=" ' . $ this ->getName () . '" ' );
320320 header ('Content-Transfer-Encoding: binary ' );
321321 header ('Connection: Keep-Alive ' );
@@ -335,9 +335,9 @@ public function create($output = false)
335335 */
336336 public function getName ()
337337 {
338- $ name = $ this ->name ?: self ::FILE_TYPE ;
338+ $ name = $ this ->name ?: static ::FILE_TYPE ;
339339 if (!strstr ($ name , '. ' )) {
340- $ name .= '. ' . self ::FILE_EXT ;
340+ $ name .= '. ' . static ::FILE_EXT ;
341341 }
342342
343343 return $ name ;
You can’t perform that action at this time.
0 commit comments