Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion classes/local/manager/backup_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down
3 changes: 2 additions & 1 deletion step/createbackup/lang/de/lifecyclestep_createbackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 href="{$a->url}">{$a->label}</a>';
$string['coursebackups'] = 'Kurs-Sicherungen';
$string['deleteallbuttonlabel'] = 'Alle löschen';
$string['deleteselectedbuttonlabel'] = 'Selektierte löschen';
Expand All @@ -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.';

3 changes: 2 additions & 1 deletion step/createbackup/lang/en/lifecyclestep_createbackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 href="{$a->url}">{$a->label}</a>';
$string['coursebackups'] = 'Course Backups';
$string['deleteallbuttonlabel'] = 'Delete all';
$string['deleteselectedbuttonlabel'] = 'Delete selected';
Expand All @@ -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.';

10 changes: 9 additions & 1 deletion step/createbackup/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Loading