From 175e86078ce2fed34953f337baf2f0edfc093742 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 28 Jan 2014 18:58:01 +0000 Subject: [PATCH] Fix crash when wiki/themes folder contains files that are not themes Fixes #370 --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 7a0770021..b83779dd5 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -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