Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Merge pull request #2 from aaronfoss/patch-1"
Revert "Merge pull request #3 from aaronfoss/patch-2"
  • Loading branch information
Hanzo55 committed May 10, 2012
1 parent dc2e3dd commit d23cd6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions corefiles/fuseboxExtensionManager.cfc
Expand Up @@ -17,14 +17,16 @@
<cfset var fbExtensions = "" />
<cfset var extHolder = "" />
<cfset var loadCount = 0 />
<cfset var theMetaData = "" />
<cfif NOT directoryExists(arguments.path)>
<cfthrow type="fusebox.BadDirectory" message="Directory does not exist." detail="Yourn path is probably wrong: #path#" />
<cfthrow type="fusebox.BadDirectory" message="Directory does not exist." detail="Your path is probably wrong: #path#" />
</cfif>
<cfdirectory action="list" directory="#arguments.path#" filter="*.cfc" name="fbExtensions" />
<cfloop query="fbExtensions">
<cfif fbExtensions.type EQ "file">
<cfset extHolder = createObject("component", pathUtil.locateCfc("#fbExtensions.directory#/#fbExtensions.name#")).init(variables.fbXml) />
<cfif addExtension(extHolder, getMetaData(extHolder)["fusebox:lifecycle"])>
<cfset theMetaData = getMetaData(extHolder)>
<cfif addExtension(extHolder, theMetaData["fusebox:lifecycle"])>
<cfset loadCount = loadCount + 1 />
</cfif>
</cfif>
Expand Down

0 comments on commit d23cd6d

Please sign in to comment.