Skip to content

Commit

Permalink
Fixed #590 by adding a name to the first section of the moodle backup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinHo64 committed Sep 18, 2024
1 parent ef55031 commit 49acd77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Generator/XmlClasses/XmlBackupFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ private void AddSectionsToBackup()
MoodleBackupXmlSectionList.Add(new MoodleBackupXmlSection
{
SectionId = "0",
Title = "",
Title = "General",
Directory = "sections/section_0",
});

Expand Down
4 changes: 2 additions & 2 deletions Generator/XmlClasses/XmlSectionFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private void AddSectionForWorldAttributes()
{
CreateSectionsFolder("0");
CreateSectionInforefXml("0");
CreateSectionSectionXml("0", "", "", new List<int?>(),
CreateSectionSectionXml("0", "General", "", new List<int?>(),
"", null, -1);
}

Expand Down Expand Up @@ -124,7 +124,7 @@ private void CreateSectionSectionXml(string sectionId, string sectionName, strin
/// <param name="sectionId"></param>
private void CreateSectionsFolder(string sectionId)
{
var currWorkDir = ApplicationPaths.BackupFolder;
var currWorkDir = ApplicationPaths.BackupFolder;
_fileSystem.Directory.CreateDirectory(Path.Join(currWorkDir, "XMLFilesForExport", "sections",
"section_" + sectionId));
}
Expand Down

0 comments on commit 49acd77

Please sign in to comment.