From 08f51047882f7d26dfb9656058d1bb57abcd5f66 Mon Sep 17 00:00:00 2001 From: AL Rachels Date: Tue, 4 May 2021 13:18:48 -0500 Subject: [PATCH] Issue 12 and 13 Fixed by removing line 26 from backup file. --- backup/moodle2/backup_diary_activity_task.class.php | 2 -- notes.txt | 7 ++++--- upgrade.txt | 6 +++++- version.php | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/backup/moodle2/backup_diary_activity_task.class.php b/backup/moodle2/backup_diary_activity_task.class.php index 1edeabb..2c007f5 100644 --- a/backup/moodle2/backup_diary_activity_task.class.php +++ b/backup/moodle2/backup_diary_activity_task.class.php @@ -23,8 +23,6 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -namespace Moodle\Diary; - defined('MOODLE_INTERNAL') || die(); require_once($CFG->dirroot.'/mod/diary/backup/moodle2/backup_diary_stepslib.php'); diff --git a/notes.txt b/notes.txt index 4a06eb1..8f0d545 100644 --- a/notes.txt +++ b/notes.txt @@ -202,7 +202,8 @@ Diary Support Tracker. 20201230 Bumped version to 3.1.2. 20210425 Added new code to start a new entry when editdates is enabled. 20210425 Bumped version to 3.2.0. -20210426 Ran codechecker and got a bunch of print_error deprecated notices. - Changed them all to something similar to this: - throw new moodle_exception(get_string('incorrectmodule', 'diary')); +20210426 Ran codechecker and got a bunch of print_error deprecated notices. Changed + them all to something similar to this: throw new moodle_exception(get_string('incorrectmodule', 'diary')); 20210426 Bumped version to 3.2.1 and published changes. +20210504 Got emails regarding issues #12 and #13.Deleted line 26 in file, + backup_diary_activity_task.class.php: namespace Moodle\Diary; diff --git a/upgrade.txt b/upgrade.txt index 9b815f3..8dcb6f9 100644 --- a/upgrade.txt +++ b/upgrade.txt @@ -1,6 +1,10 @@ This files describes API changes in the diary code. +=== 3.2.2 === +Diary_710 - Backup is broken, see issue #12 and #13 on github. Deleted + line 26 in file, backup_diary_activity_task.class.php: namespace Moodle\Diary; + === 3.2.1 === - Diary_703 - print_error deprecated - in multiple files. Fixed in +Diary_703 - print_error deprecated - in multiple files. Fixed in Multiple places. === 3.2.0 === diff --git a/version.php b/version.php index b4acadc..c83c631 100644 --- a/version.php +++ b/version.php @@ -25,9 +25,9 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2021042600; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2021050400; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2015111600; // Requires Moodle 3.0 version. $plugin->cron = 60; // Period for cron to check this module (secs). $plugin->component = 'mod_diary'; $plugin->maturity = MATURITY_STABLE; -$plugin->release = '3.2.1 (Build: 2021042600)'; // User-friendly version number. +$plugin->release = '3.2.2 (Build: 2021050400)'; // User-friendly version number.