mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-73700 backup: remove old PHP version check
As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up to PHP 8.1 we can now safely remove this check. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
parent
723cfca487
commit
1b8b1505e5
@ -39,11 +39,6 @@ function cc_convert ($dir) {
|
||||
|
||||
$detected_requirements = detect_requirements();
|
||||
|
||||
if (!$detected_requirements["php5"]) {
|
||||
echo $OUTPUT->notification(get_string('cc_import_req_php5', 'imscc'));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$detected_requirements["dom"]) {
|
||||
echo $OUTPUT->notification(get_string('cc_import_req_dom', 'imscc'));
|
||||
return false;
|
||||
@ -98,12 +93,6 @@ function cc_convert ($dir) {
|
||||
|
||||
function detect_requirements () {
|
||||
|
||||
if (floor(phpversion()) >= 5) {
|
||||
$detected["php5"] = true;
|
||||
} else {
|
||||
$detected["php5"] = false;
|
||||
}
|
||||
|
||||
$detected["xsl"] = extension_loaded('xsl');
|
||||
$detected['dom'] = extension_loaded('dom');
|
||||
$detected['libxml'] = extension_loaded('libxml');
|
||||
|
@ -180,3 +180,4 @@ globalratelimit_desc,aiprovider_openai
|
||||
orgid_desc,aiprovider_openai
|
||||
userratelimit,aiprovider_openai
|
||||
userratelimit_desc,aiprovider_openai
|
||||
cc_import_req_php5,core_imscc
|
||||
|
@ -26,7 +26,6 @@
|
||||
$string['cc_import_req_dom'] = 'ERROR: The Common Cartridge import requires DOM extension.';
|
||||
$string['cc_import_req_libxml'] = 'ERROR: The Common Cartridge import requires LIBXML extension.';
|
||||
$string['cc_import_req_libxmlminversion'] = 'ERROR: The Common Cartridge import requires LIBXML version 2.6.30 or newer.';
|
||||
$string['cc_import_req_php5'] = 'ERROR: The Common Cartridge import requires PHP 5 or higher.';
|
||||
$string['cc_import_req_xsl'] = 'ERROR: The Common Cartridge import requires XSL.';
|
||||
$string['cc2moodle_checking_schema'] = 'CC format! Checking schema...';
|
||||
$string['cc2moodle_invalid_schema'] = 'The schema is not valid.';
|
||||
@ -36,3 +35,6 @@ $string['cc2moodle_valid_schema'] = 'Schema valid!';
|
||||
$string['enable_cc_import'] = 'Enable CC import';
|
||||
$string['enable_cc_import_description'] = 'This setting enables the import of Common Cartridge (IMS-CC) packages using the standard restore functionality. Note it requires PHP5, DOM, XSL and LIBXML (2.6.30 or newer) extensions to be installed in the server.';
|
||||
$string['checkingforimscc'] = 'Checking for IMS-CC...';
|
||||
|
||||
// Deprecated since Moodle 5.0.
|
||||
$string['cc_import_req_php5'] = 'ERROR: The Common Cartridge import requires PHP 5 or higher.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user