Ticket #343: addSetApplicationPathReverseCompatibilityMethod.patch

File addSetApplicationPathReverseCompatibilityMethod.patch, 1.0 kB (added by cfgrok, 17 years ago)
  • gesture/configuration/ModelGlueConfiguration.cfc

     
    8181        <cfreturn variables._instance.RescaffoldKey /> 
    8282</cffunction> 
    8383 
     84<!--- This function prevents MG 3 alpha applications from breaking due to the config setting change from applicationPath to applicationMapping. ---> 
     85<cffunction name="setApplicationPath" returntype="void" output="false" access="public" hint="Deprecated in favor of setApplicationMapping. Included for reverse compatibility with Gesture alpha."> 
     86        <cfargument name="ApplicationMapping" type="string" /> 
     87        <cfset setApplicationMapping(arguments.ApplicationMapping) /> 
     88</cffunction> 
    8489<cffunction name="setApplicationMapping" returntype="void" output="false" access="public"> 
    8590        <cfargument name="ApplicationMapping"  type="string" /> 
    8691        <cfset variables._instance.ApplicationMapping = arguments.ApplicationMapping />