mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	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:
		| @@ -12,3 +12,5 @@ To load tiddlers from an encrypted TiddlyWiki file you should first specify the | ||||
| ``` | ||||
| tiddlywiki ./MyWiki --password pa55w0rd --load my_encrypted_wiki.html | ||||
| ``` | ||||
|  | ||||
| Note that TiddlyWiki will not load an older version of an already loaded plugin. | ||||
|   | ||||
| @@ -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);	 | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene