diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-06 11:53:13 -0800 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-06 11:53:13 -0800 |
commit | e969a78cf998a6a5607e605d65b7bf1b35259cb8 (patch) | |
tree | ba139f19b165727132c00c8398d44a6e564d3614 /lib | |
parent | 93b15973951e00f066eacf92cc3bff8fc24dbefd (diff) | |
parent | 6058c2f734ca2259aebab9cc83eb63c2718b2e4d (diff) | |
download | nextcloud-server-e969a78cf998a6a5607e605d65b7bf1b35259cb8.tar.gz nextcloud-server-e969a78cf998a6a5607e605d65b7bf1b35259cb8.zip |
Merge pull request #1443 from owncloud/use-module-file-info-master
we get best results regarding mime type detection if we use fileinfo - l...
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/util.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 5983c34e761..faa1a549e64 100755 --- a/lib/util.php +++ b/lib/util.php @@ -535,6 +535,14 @@ class OC_Util { } /** + * Check if the PHP module fileinfo is loaded. + * @return bool + */ + public static function fileInfoLoaded() { + return function_exists('finfo_open'); + } + + /** * Check if the ownCloud server can connect to the internet */ public static function isinternetconnectionworking() { |