Fix crash when wiki/themes folder contains files that are not themes

Fixes #370
print-window-tiddler
Jermolene 2014-01-28 18:58:01 +00:00
rodzic 3b255561b7
commit 175e86078c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1256,7 +1256,7 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) {
}
}
// Give the plugin the same version number as the core if it doesn't have one
if(!("version" in pluginInfo)) {
if(pluginInfo && !("version" in pluginInfo)) {
pluginInfo.version = $tw.packageInfo.version;
}
// Save the plugin tiddler