From 6cfcfff1189c3ce14eebf594d58ce9a0c2a85f5f Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 3 May 2017 08:32:04 +0800 Subject: [PATCH] MDL-58746 core: Simplify environment check --- admin/environment.xml | 6 +----- lang/en/admin.php | 1 - lib/upgradelib.php | 17 ----------------- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/admin/environment.xml b/admin/environment.xml index 3a1b469cb1e..a901cca182a 100644 --- a/admin/environment.xml +++ b/admin/environment.xml @@ -1969,6 +1969,7 @@ + @@ -2043,11 +2044,6 @@ - - - - - diff --git a/lang/en/admin.php b/lang/en/admin.php index 31d6e0357c4..ffc14f2b9d5 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -596,7 +596,6 @@ $string['iplookupinfo'] = 'By default Moodle uses the free online NetGeo (The In It is recommended to install local copy of free GeoLite City database from MaxMind.
IP address location is displayed on simple map or using Google Maps. Please note that you need to have a Google account and apply for free Google Maps API key to enable interactive maps.'; $string['iplookupmaxmindnote'] = 'This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/.'; -$string['finforequired'] = 'The finfo PHP extension is now required by Moodle, in order to improve mimetype decoding.'; $string['keeptagnamecase'] = 'Keep tag name casing'; $string['lang'] = 'Default language'; $string['langcache'] = 'Cache language menu'; diff --git a/lib/upgradelib.php b/lib/upgradelib.php index e7649aa32b4..499a9fc4845 100644 --- a/lib/upgradelib.php +++ b/lib/upgradelib.php @@ -2301,20 +2301,3 @@ function check_libcurl_version(environment_results $result) { return null; } - -/** - * Check if the finfo class is present. - * - * @param environment_results $result object to update, if relevant. - * @return environment_results|null updated results or null. - */ -function check_finfo(environment_results $result) { - if (!class_exists('finfo')) { - $result->setInfo('finfo extension not enabled'); - $result->setStatus(false); - - return $result; - } - - return null; -}