diff --git a/source/Plugins/AyaNova.Plugin.Dump/Dump.cs b/source/Plugins/AyaNova.Plugin.Dump/Dump.cs index f6f87d1..a3b6126 100644 --- a/source/Plugins/AyaNova.Plugin.Dump/Dump.cs +++ b/source/Plugins/AyaNova.Plugin.Dump/Dump.cs @@ -612,7 +612,7 @@ namespace AyaNova.Plugin.Dump WikiPage w= WikiPage.GetItem(tid); var content= w.GetContentAsString; - AyaFileList fl = AyaFileList.GetList(tid.ID); + AyaFileList fl = AyaFileList.GetList(w.ID); if (string.IsNullOrWhiteSpace(content) && fl.Count < 1) return; @@ -638,7 +638,7 @@ namespace AyaNova.Plugin.Dump //save each file plus file info into their own folder by ayafile id this is because ayafiles can be dupe names and we need the wiki info to fixup the last created date etc - var filePath = wikiOutputPath + Path.DirectorySeparatorChar + i.Id.ToString(); + var filePath = wikiOutputPath + Path.DirectorySeparatorChar + i.LT_O_AyaFile.Value.ToString(); makeFolderIfNotExist(filePath);//output/objectype/client.f861ec01-8bde-46e1-9849-fcee9b42f05e/files/d5461ec01-8bde-46e1-9849-fcee9b42f0ff34/ var af = AyaFile.GetItem(i.LT_O_AyaFile.Value);