diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-04 15:04:26 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-04 15:04:26 +0100 |
commit | 6058c2f734ca2259aebab9cc83eb63c2718b2e4d (patch) | |
tree | e939096e410589289db1daf9df1cac8424e04c3f /lib/util.php | |
parent | 814369e0cdc9b1d44344f25cc95a7236d25426eb (diff) | |
download | nextcloud-server-6058c2f734ca2259aebab9cc83eb63c2718b2e4d.tar.gz nextcloud-server-6058c2f734ca2259aebab9cc83eb63c2718b2e4d.zip |
we get best results regarding mime type detection if we use fileinfo - let's tell the admin about that
Diffstat (limited to 'lib/util.php')
-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 91970ab2b96..4de34b9dfda 100755 --- a/lib/util.php +++ b/lib/util.php @@ -517,6 +517,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() { |