Changeset 1281

Show
Ignore:
Timestamp:
02/10/08 00:22:58
Author:
rsz
Message:

cleanup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • HTTP/Diff.lua

    r1196 r1281  
    8787            aBuffer[ #aBuffer + 1 ] = aHandler( '+', listB[ indexB ] ) 
    8888            indexB = indexB + 1 
     89        elseif indexB > lengthB then 
     90            aBuffer[ #aBuffer + 1 ] = aHandler( '-', listA[ indexA ] ) 
     91            indexA = indexA + 1 
    8992        elseif listA[ indexA ] == listB[ indexB ] then 
    9093            aBuffer[ #aBuffer + 1 ] = aHandler( '=', listA[ indexA ] ) 
  • HTTP/WikiFileService.lua

    r1275 r1281  
    222222    local aLayoutTemplate = Template[ 'WikiLayout.txt' ] 
    223223    local aTemplate = Template[ 'WikiFileService.txt' ] 
     224    local aFileTemplate = aTemplate[ 'files' ] 
    224225    local aContent = self.content 
    225226    local aFileToken = FileToken( aContent.file ) 
     
    241242    aTemplate[ 'time' ] = Encode( aContext.time or os.time() ) 
    242243    aTemplate[ 'token' ] = Encode( aToken.token ) 
     244     
     245    aTemplate[ 'files' ] = nil 
    243246     
    244247    for aFile in aContent.file do