mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
[ticket/13904] Use filespec's get_filesize instead of calling filesize()
PHPBB3-13904
This commit is contained in:
@@ -145,7 +145,7 @@ class filespec
|
|||||||
$this->extension = strtolower(self::get_extension($this->realname));
|
$this->extension = strtolower(self::get_extension($this->realname));
|
||||||
|
|
||||||
// Try to get real filesize from temporary folder (not always working) ;)
|
// Try to get real filesize from temporary folder (not always working) ;)
|
||||||
$this->filesize = (@filesize($this->filename)) ? @filesize($this->filename) : $this->filesize;
|
$this->filesize = ($this->get_filesize($this->filename)) ?: $this->filesize;
|
||||||
|
|
||||||
$this->width = $this->height = 0;
|
$this->width = $this->height = 0;
|
||||||
$this->file_moved = false;
|
$this->file_moved = false;
|
||||||
@@ -494,7 +494,7 @@ class filespec
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Try to get real filesize from destination folder
|
// Try to get real filesize from destination folder
|
||||||
$this->filesize = (@filesize($this->destination_file)) ? @filesize($this->destination_file) : $this->filesize;
|
$this->filesize = ($this->get_filesize($this->destination_file)) ?: $this->filesize;
|
||||||
|
|
||||||
// Get mimetype of supplied file
|
// Get mimetype of supplied file
|
||||||
$this->mimetype = $this->get_mimetype($this->destination_file);
|
$this->mimetype = $this->get_mimetype($this->destination_file);
|
||||||
|
Reference in New Issue
Block a user