diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-09-13 09:31:23 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-13 09:31:23 +0200 |
commit | 6651c1d8f4aead15f4750989670f75721390ee21 (patch) | |
tree | 7cbaaa6aa254973178ccd8e508be8b593908ff4b /phpBB/phpbb/files | |
parent | 759dc9bb84d712c11148a9689d294c09aa0f81d4 (diff) | |
download | forums-6651c1d8f4aead15f4750989670f75721390ee21.tar forums-6651c1d8f4aead15f4750989670f75721390ee21.tar.gz forums-6651c1d8f4aead15f4750989670f75721390ee21.tar.bz2 forums-6651c1d8f4aead15f4750989670f75721390ee21.tar.xz forums-6651c1d8f4aead15f4750989670f75721390ee21.zip |
[ticket/13904] Use filespec's get_filesize instead of calling filesize()
PHPBB3-13904
Diffstat (limited to 'phpBB/phpbb/files')
-rw-r--r-- | phpBB/phpbb/files/filespec.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/files/filespec.php b/phpBB/phpbb/files/filespec.php index 7fc9e923ea..2ff2a92c83 100644 --- a/phpBB/phpbb/files/filespec.php +++ b/phpBB/phpbb/files/filespec.php @@ -145,7 +145,7 @@ class filespec $this->extension = strtolower(self::get_extension($this->realname)); // 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->file_moved = false; @@ -494,7 +494,7 @@ class filespec } // 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 $this->mimetype = $this->get_mimetype($this->destination_file); |