assert
This commit is contained in:
parent
f0c8affc07
commit
91b354f6f8
1 changed files with 1 additions and 0 deletions
|
@ -273,6 +273,7 @@ class BasePage
|
||||||
if (!is_null($this->filename)) {
|
if (!is_null($this->filename)) {
|
||||||
header('Content-Disposition: ' . $this->disposition . '; filename=' . $this->filename);
|
header('Content-Disposition: ' . $this->disposition . '; filename=' . $this->filename);
|
||||||
}
|
}
|
||||||
|
assert($this->file, "file should not be null with PageMode::FILE");
|
||||||
|
|
||||||
// https://gist.github.com/codler/3906826
|
// https://gist.github.com/codler/3906826
|
||||||
$size = filesize($this->file); // File size
|
$size = filesize($this->file); // File size
|
||||||
|
|
Reference in a new issue