Changeset 293
- Timestamp:
- 12/25/06 15:16:36 (2 years ago)
- Location:
- framework/trunk
- Files:
-
- 3 modified
-
fusebox5.cfm (modified) (2 diffs)
-
fuseboxApplication.cfc (modified) (2 diffs)
-
myFusebox.cfc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
framework/trunk/fusebox5.cfm
r292 r293 20 20 <!--- FB5: application key - FB41 always uses 'fusebox': ---> 21 21 <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")#" /> 22 24 23 25 <cfparam name="variables.attributes" default="#structNew()#" /> … … 46 48 <cfset myFusebox.trace("Fusebox","Creating Fusebox application object") /> 47 49 <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) /> 49 51 <cfelse> 50 52 <!--- can't be conditional: we don't know the state of the debug flag yet ---> -
framework/trunk/fuseboxApplication.cfc
r292 r293 57 57 <cfargument name="myFusebox" type="myFusebox" required="true" 58 58 hint="I am the myFusebox data structure." /> 59 60 <!--- fixes ticket 169 ---> 59 <cfargument name="callerPath" type="string" required="true" 60 hint="I am FUSEBOX_CALLER_PATH." /> 61 62 <!--- fixes ticket 54 ---> 61 63 <cfset var myVersion = "5.0.1.#REReplace('$LastChangedRevision$','[^0-9]','','all')#" /> 62 64 … … 73 75 <cfset variables.coreRoot = replace(getDirectoryFromPath(getCurrentTemplatePath()),"\","/","all") /> 74 76 75 <cfset this.approotdirectory = normalizePartialPath( this.webrootdirectory &arguments.appPath) />77 <cfset this.approotdirectory = normalizePartialPath(arguments.callerPath) & normalizePartialPath(arguments.appPath) /> 76 78 <!--- remove pairs of directory/../ to form canonical path: ---> 77 79 <cfloop condition="find('/../',this.approotdirectory) gt 0"> -
framework/trunk/myFusebox.cfc
r292 r293 16 16 <cfcomponent hint="I provide the per-request myFusebox data structure and some convenience methods."> 17 17 <cfscript> 18 // fixes ticket 16918 // fixes ticket 54 19 19 this.version.runtime = "5.0.1.#REReplace('$LastChangedRevision$','[^0-9]','','all')#"; 20 20
