Changeset 221

Show
Ignore:
Timestamp:
07/07/06 16:12:29 (3 years ago)
Author:
scorfield
Message:

Fixes #96 by moving the timestamp inside the conditional load of the XML file and also exposing timestamp as a public attribute of circuit to match FB41.

Location:
fusebox5
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • fusebox5/fuseboxApplication.cfc

    r209 r221  
    229229                        <cfset variables.fbCode = fbCode /> 
    230230                        <cfset variables.fbFile = fbFile /> 
     231                        <cfset this.timestamp = now() /> 
    231232                </cfif> 
    232233                 
     
    245246                <cfset this.isFullyLoaded = true /> 
    246247                <cfset this.applicationStarted = false /> 
    247                 <cfset this.timestamp = now() /> 
    248248                <cfset this.dateLastLoaded = now() /> 
    249249                 
  • fusebox5/fuseboxCircuit.cfc

    r202 r221  
    105105                <cfset var circuitFiles = 0 /> 
    106106 
    107                 <cfif structKeyExists(variables,"timestamp")> 
     107                <cfif structKeyExists(this,"timestamp")> 
    108108                        <cfdirectory action="list" directory="#variables.fullPath#" filter="circuit.xml*" name="circuitFiles" /> 
    109109                        <cfif circuitFiles.recordCount eq 1> 
    110                                 <cfset needToLoad = parseDateTime(circuitFiles.dateLastModified) gt parseDateTime(variables.timestamp) /> 
     110                                <cfset needToLoad = parseDateTime(circuitFiles.dateLastModified) gt parseDateTime(this.timestamp) /> 
    111111                        <!--- else ignore the ambiguity ---> 
    112112                        </cfif> 
     
    179179                        <cfset loadFuseactions(circuitCode) /> 
    180180                        <cfset variables.circuitFile = circuitFile /> 
    181                 </cfif> 
    182                  
    183                 <cfset variables.timestamp = now() /> 
     181                        <cfset this.timestamp = now() /> 
     182                </cfif> 
    184183                 
    185184                <cfreturn this />