Fix problem with --load command overwriting $:/core

Now we use the `wiki.importTiddler()` method - it rejects attempts to
load older versions of loaded plugins
This commit is contained in:
Jermolene
2014-03-31 12:46:10 +01:00
parent 914a536d82
commit 09214d1c33
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ Command.prototype.execute = function() {
self.callback("No tiddlers found in file \"" + self.params[0] + "\"");
} else {
for(var t=0; t<tiddlers.length; t++) {
self.commander.wiki.addTiddler(new $tw.Tiddler(tiddlers[t]));
self.commander.wiki.importTiddler(new $tw.Tiddler(tiddlers[t]));
}
self.callback(null);
}