Show
Ignore:
Timestamp:
12/25/06 15:16:36 (2 years ago)
Author:
scorfield
Message:

Fixes #54 by adding the optional FUSEBOX_CALLER_PATH variable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/trunk/fusebox5.cfm

    r292 r293  
    2020<!--- FB5: application key - FB41 always uses 'fusebox': ---> 
    2121<cfparam name="variables.FUSEBOX_APPLICATION_KEY" default="fusebox" /> 
     22<!--- FB5.1: allow application to be included from other directories: ---> 
     23<cfparam name="variables.FUSEBOX_CALLER_PATH" default="#replace(getDirectoryFromPath(getBaseTemplatePath()),"\","/","all")#" /> 
    2224 
    2325<cfparam name="variables.attributes" default="#structNew()#" /> 
     
    4648                                <cfset myFusebox.trace("Fusebox","Creating Fusebox application object") /> 
    4749                                <cfset _fba = createObject("component","fuseboxApplication") /> 
    48                                 <cfset application[FUSEBOX_APPLICATION_KEY] = _fba.init(FUSEBOX_APPLICATION_KEY,FUSEBOX_APPLICATION_PATH,myFusebox) /> 
     50                                <cfset application[FUSEBOX_APPLICATION_KEY] = _fba.init(FUSEBOX_APPLICATION_KEY,FUSEBOX_APPLICATION_PATH,myFusebox,FUSEBOX_CALLER_PATH) /> 
    4951                        <cfelse> 
    5052                                <!--- can't be conditional: we don't know the state of the debug flag yet --->