diff --git a/boot/boot.js b/boot/boot.js index 2afc44d9d..25a72dc22 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -899,6 +899,11 @@ $tw.Wiki = function(options) { } }; + // Get plugin info for a plugin + this.getPluginInfo = function(title) { + return pluginInfo[title]; + }; + // Register the plugin tiddlers of a particular type, optionally restricting registration to an array of tiddler titles. Return the array of titles affected this.registerPluginTiddlers = function(pluginType,titles) { var self = this, diff --git a/core/modules/filters/plugintiddlers.js b/core/modules/filters/plugintiddlers.js index 48f39ae22..31db287b9 100644 --- a/core/modules/filters/plugintiddlers.js +++ b/core/modules/filters/plugintiddlers.js @@ -21,7 +21,7 @@ exports.plugintiddlers = function(source,operator,options) { switch(operator.operand) { default: pushShadows = function(title) { - var pluginInfo = options.wiki.pluginInfo[title]; + var pluginInfo = options.wiki.getPluginInfo(title); if(pluginInfo) { $tw.utils.each(pluginInfo.tiddlers,function(fields,title) { results.push(title);