cgi-bin/tek/class/loona.lua
changeset 243 ae976ed38923
parent 239 08efae95f502
child 246 9378039084bd
     1.1 --- a/cgi-bin/tek/class/loona.lua	Wed Jan 02 10:32:42 2008 +0100
     1.2 +++ b/cgi-bin/tek/class/loona.lua	Mon Jun 30 02:11:03 2008 +0200
     1.3 @@ -37,7 +37,7 @@
     1.4  -------------------------------------------------------------------------------
     1.5  
     1.6  module("tek.class.loona", tek.class)
     1.7 -_VERSION = "LOona Class 5.2"
     1.8 +_VERSION = "LOona Class 5.3"
     1.9  
    1.10  -------------------------------------------------------------------------------
    1.11  --	Markup:
    1.12 @@ -1746,6 +1746,10 @@
    1.13  				return self.requestdocument .. "/" .. path .. anch
    1.14  			end
    1.15  			path = path == self.config.defname and "index" or path
    1.16 +
    1.17 +			if path:match("%.html$") then
    1.18 +				return "/" .. path:gsub("/", "_") .. anch
    1.19 +			end
    1.20  			return "/" .. path:gsub("/", "_") .. ".html" .. anch
    1.21  		end
    1.22  	end