1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Add error message for recursively including a wiki

This commit is contained in:
Jeremy Ruston 2013-03-25 19:56:22 +00:00
parent 631dd1cc5f
commit 829ab59a7d

View File

@ -1018,6 +1018,8 @@ $tw.loadWikiTiddlers = function(wikiPath,parentPaths) {
var resolvedIncludedWikiPath = path.resolve(wikiPath,includedWikiPath);
if(parentPaths.indexOf(resolvedIncludedWikiPath) === -1) {
$tw.loadWikiTiddlers(resolvedIncludedWikiPath,parentPaths);
} else {
console.log("Cannot recursively include wiki",resolvedIncludedWikiPath);
}
});
}