diff --git a/core/language/en-GB/Import.multids b/core/language/en-GB/Import.multids index d5dea4680..536ace2aa 100644 --- a/core/language/en-GB/Import.multids +++ b/core/language/en-GB/Import.multids @@ -9,5 +9,6 @@ Listing/Title/Caption: Title Upgrader/Plugins/Suppressed/Incompatible: Blocked incompatible or obsolete plugin Upgrader/Plugins/Suppressed/Version: Blocked plugin (due to incoming <> being older than existing <>) Upgrader/Plugins/Upgraded: Upgraded plugin from <> to <> +Upgrader/State/Suppressed: Blocked temporary state tiddler Upgrader/System/Suppressed: Blocked system tiddler Upgrader/ThemeTweaks/Created: Migrated theme tweak from <$text text=<>/> diff --git a/core/modules/upgraders/system.js b/core/modules/upgraders/system.js index bed53b47b..3dae00422 100644 --- a/core/modules/upgraders/system.js +++ b/core/modules/upgraders/system.js @@ -12,7 +12,8 @@ Upgrader module that suppresses certain system tiddlers that shouldn't be import /*global $tw: false */ "use strict"; -var DONT_IMPORT_LIST = ["$:/StoryList","$:/HistoryList"]; +var DONT_IMPORT_LIST = ["$:/StoryList","$:/HistoryList"], + DONT_IMPORT_PREFIX_LIST = ["$:/temp/","$:/state/"]; exports.upgrade = function(wiki,titles,tiddlers) { var self = this, @@ -22,6 +23,14 @@ exports.upgrade = function(wiki,titles,tiddlers) { if(DONT_IMPORT_LIST.indexOf(title) !== -1) { tiddlers[title] = Object.create(null); messages[title] = $tw.language.getString("Import/Upgrader/System/Suppressed"); + } else { + for(var t=0; t