Add error message for recursively including a wiki

print-window-tiddler
Jeremy Ruston 2013-03-25 19:56:22 +00:00
rodzic 631dd1cc5f
commit 829ab59a7d
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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);
}
});
}