1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 06:44:50 +00:00

Fix plugin bag names

This commit is contained in:
Jeremy Ruston 2024-10-17 15:51:01 +01:00
parent d0575d6e8e
commit 5d6ddaee7e
2 changed files with 6 additions and 6 deletions

View File

@ -66,13 +66,13 @@ function loadPluginBags() {
}
};
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.pluginsPath,$tw.config.pluginsEnvVar),function(folder) {
collectPublisherPlugins(folder,"plugin");
collectPublisherPlugins(folder,"plugins");
});
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.themesPath,$tw.config.themesEnvVar),function(folder) {
collectPublisherPlugins(folder,"theme");
collectPublisherPlugins(folder,"themes");
});
$tw.utils.each($tw.getLibraryItemSearchPaths($tw.config.languagesPath,$tw.config.languagesEnvVar),function(folder) {
collectPlugins(folder,"language");
collectPlugins(folder,"languages");
});
}

View File

@ -78,9 +78,9 @@ function loadWikiFolder(options) {
recipeList.push(makePluginBagName(type,publisher,name));
});
};
processPlugins("plugin",wikiInfo.plugins);
processPlugins("theme",wikiInfo.themes);
processPlugins("language",wikiInfo.languages);
processPlugins("plugins",wikiInfo.plugins);
processPlugins("themes",wikiInfo.themes);
processPlugins("languages",wikiInfo.languages);
// Create the recipe
recipeList.push(options.bagName);
$tw.mws.store.createRecipe(options.recipeName,recipeList,options.recipeDescription);