diff options
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() { |