diff --git a/CHANGES.md b/CHANGES.md index 8d960eab..aafae320 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,10 @@ CHANGELOG ========= +5.2.0 (2026-06-01) +------------------ +* Moodle 5.2 compatible version + 5.1.5 (v5.1-r6, 2026-05-20) --------------------------- * [FEATURE] Introduce new step opencast diff --git a/classes/local/manager/backup_manager.php b/classes/local/manager/backup_manager.php index 643755ea..f933a277 100644 --- a/classes/local/manager/backup_manager.php +++ b/classes/local/manager/backup_manager.php @@ -73,7 +73,7 @@ public static function create_course_backup($courseid, $stepid) { } // Perform Backup. $bc = new \backup_controller(\backup::TYPE_1COURSE, $courseid, \backup::FORMAT_MOODLE, - \backup::INTERACTIVE_NO, \backup::MODE_GENERAL, get_admin()->id); + \backup::INTERACTIVE_NO, \backup::MODE_AUTOMATED, get_admin()->id); $bc->execute_plan(); // Execute backup. $results = $bc->get_results(); // Get the file information needed. /* @var $file \stored_file instance of the backup file*/ diff --git a/step/createbackup/lang/de/lifecyclestep_createbackup.php b/step/createbackup/lang/de/lifecyclestep_createbackup.php index 7ee474d8..746fb209 100644 --- a/step/createbackup/lang/de/lifecyclestep_createbackup.php +++ b/step/createbackup/lang/de/lifecyclestep_createbackup.php @@ -22,6 +22,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +$string['backupsettings'] = 'Backup Einstellungen'; +$string['backupsettingsstatictext'] = 'Die Konfiguration der erstellten Backups wird durch die Einstellungen für automatisierte Backups gesteuert: {$a->label}'; $string['coursebackups'] = 'Kurs-Sicherungen'; $string['deleteallbuttonlabel'] = 'Alle löschen'; $string['deleteselectedbuttonlabel'] = 'Selektierte löschen'; @@ -30,4 +32,3 @@ $string['plugindescription'] = 'Stößt ein Backup der getriggerten Kurse an.'; $string['pluginname'] = 'Kurssicherungs-Schritt'; $string['privacy:metadata'] = 'Dieses Subplugin speichert keine persönlichen Daten.'; - diff --git a/step/createbackup/lang/en/lifecyclestep_createbackup.php b/step/createbackup/lang/en/lifecyclestep_createbackup.php index aeb857f0..d60417f0 100644 --- a/step/createbackup/lang/en/lifecyclestep_createbackup.php +++ b/step/createbackup/lang/en/lifecyclestep_createbackup.php @@ -22,6 +22,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +$string['backupsettings'] = 'Backup Settings'; +$string['backupsettingsstatictext'] = 'The configuration of the created backups is controlled by the automated backup settings: {$a->label}'; $string['coursebackups'] = 'Course Backups'; $string['deleteallbuttonlabel'] = 'Delete all'; $string['deleteselectedbuttonlabel'] = 'Delete selected'; @@ -30,4 +32,3 @@ $string['plugindescription'] = 'Initiates a backup of the triggered courses.'; $string['pluginname'] = 'Create Backup Step'; $string['privacy:metadata'] = 'This subplugin does not store any personal data.'; - diff --git a/step/createbackup/lib.php b/step/createbackup/lib.php index 551b5a8c..d9c5d518 100644 --- a/step/createbackup/lib.php +++ b/step/createbackup/lib.php @@ -117,6 +117,13 @@ public function instance_settings() { * @throws \coding_exception */ public function extend_add_instance_form_definition($mform) { + $elementname = 'backupsettings'; + $backupsettings = new stdClass; + $backupsettings->url = (new \moodle_url('/admin/settings.php', ['section' => 'automated']))->out(); + $backupsettings->label = get_string('automatedsetup', 'backup'); + $mform->addElement('static', $elementname, get_string('backupsettings', 'lifecyclestep_createbackup'), + get_string('backupsettingsstatictext', 'lifecyclestep_createbackup', $backupsettings) + ); $elementname = 'status'; $options = [ self::STEPACTIVE => get_string('active', 'tool_lifecycle'), @@ -130,7 +137,8 @@ public function extend_add_instance_form_definition($mform) { $elementname = 'maximumbackupspercron'; $mform->addElement('text', $elementname, get_string('maximumbackupspercron', 'lifecyclestep_createbackup'), - ['size' => 3]); + ['size' => 3] + ); $mform->setType($elementname, PARAM_INT); $mform->setDefault($elementname, 10); } diff --git a/version.php b/version.php index f577a563..c9b2f76c 100644 --- a/version.php +++ b/version.php @@ -26,7 +26,7 @@ $plugin->component = 'tool_lifecycle'; $plugin->maturity = MATURITY_STABLE; -$plugin->version = 2026012005; +$plugin->version = 2026060100; $plugin->requires = 2024100700; // Requires Moodle 4.5+. -$plugin->supported = [405, 501]; -$plugin->release = 'v5.1-r6'; +$plugin->supported = [405, 502]; +$plugin->release = 'v5.2-r1';