
|
If you were logged in you would be able to see more operations.
|
|
|
FarCry Core
Created: 09/Apr/08 09:40 AM
Updated: 09/Apr/08 09:42 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
None
|
| Fix Version/s: |
FarCry 5.0
|
|
|
There's a minor fix to the change I gave you previously to support J2EE deployment. The image path wasn't being calculated correctly due to the application.path.webroot being wrong. Here's the change to farcry/core/Application.cfc:
<cfif len(cgi.context_path)>
<!--- remove the context path before expanding the path --->
<cfset application.path.webroot = expandPath("#right(application.url.webroot, len(application.url.webroot)-len(cgi.context_path))#")>
<cfelseif len(application.url.webroot)>
<cfset application.path.webroot = expandPath("#application.url.webroot#")>
<cfelse>
<cfset application.path.webroot = expandPath("/")><!--- Doesnt work if empty string. Have to set to "/" otherwise it returns cf root --->
</cfif>
|
|
Description
|
There's a minor fix to the change I gave you previously to support J2EE deployment. The image path wasn't being calculated correctly due to the application.path.webroot being wrong. Here's the change to farcry/core/Application.cfc:
<cfif len(cgi.context_path)>
<!--- remove the context path before expanding the path --->
<cfset application.path.webroot = expandPath("#right(application.url.webroot, len(application.url.webroot)-len(cgi.context_path))#")>
<cfelseif len(application.url.webroot)>
<cfset application.path.webroot = expandPath("#application.url.webroot#")>
<cfelse>
<cfset application.path.webroot = expandPath("/")><!--- Doesnt work if empty string. Have to set to "/" otherwise it returns cf root --->
</cfif> |
Show » |
|