diff options
author | Steve Clay <steve@mrclay.org> | 2013-02-04 20:51:07 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-02-09 07:53:45 -0500 |
commit | 707df9db27cf2154910978427b9844448bcf931a (patch) | |
tree | 6ca8ba536758fe2f34ac6a55a18b7befa76bc74c /engine/classes/ElggFile.php | |
parent | 85e4c16f39a8b00b229644bcd175663541dfd51a (diff) | |
download | elgg-707df9db27cf2154910978427b9844448bcf931a.tar.gz elgg-707df9db27cf2154910978427b9844448bcf931a.tar.bz2 |
Small changes to remove static analysis noise and simplify flow
Diffstat (limited to 'engine/classes/ElggFile.php')
-rw-r--r-- | engine/classes/ElggFile.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/classes/ElggFile.php b/engine/classes/ElggFile.php index 86406d108..3f652ff19 100644 --- a/engine/classes/ElggFile.php +++ b/engine/classes/ElggFile.php @@ -127,9 +127,11 @@ class ElggFile extends ElggObject { * @param mixed $default A default. Useful to pass what the browser thinks it is. * @since 1.7.12 * + * @note If $file is provided, this may be called statically + * * @return mixed Detected type on success, false on failure. */ - static function detectMimeType($file = null, $default = null) { + public function detectMimeType($file = null, $default = null) { if (!$file) { if (isset($this) && $this->filename) { $file = $this->filename; |