Mach-II Bug, plugin configure() execution order
Originally blogged by Doug Hughes, there is a bug in Mach-II v1.0.10 where the configure methods of plugins are not executed in the order the plugins are declared. According to Sean, PluginManager.configure() should look like this:
<cffunction name="configure" access="public" returntype="void" output="false">
<cfset var aPlugin = 0 />
<cfset var i = 0 />
<cfloop index="i" from="1" to="#variables.nPlugins#">
<cfset aPlugin = variables.pluginArray[i] />
<cfset aPlugin.configure() />
</cfloop>
</cffunction>
<cfset var aPlugin = 0 />
<cfset var i = 0 />
<cfloop index="i" from="1" to="#variables.nPlugins#">
<cfset aPlugin = variables.pluginArray[i] />
<cfset aPlugin.configure() />
</cfloop>
</cffunction>

0 Comments:
Post a Comment
<< Home