diff --git a/docs/manual/mod/mod_lua.html.en b/docs/manual/mod/mod_lua.html.en index 153b79c7d2..bdecbdb2a3 100644 --- a/docs/manual/mod/mod_lua.html.en +++ b/docs/manual/mod/mod_lua.html.en @@ -782,7 +782,7 @@ local url = r:construct_url(r.uri)
-r:mpm_query(number) -- Queries the server for MPM information using ap_mpm_query:
+r.mpm_query(number) -- Queries the server for MPM information using ap_mpm_query:
local mpm = r.mpm_query(14)
if mpm == 1 then
@@ -1033,19 +1033,14 @@ r:touch(file [,mtime]) -- Sets the file modification time to current time or to
r:get_direntries(dir) -- Returns a table with all directory entries.
--- Return path splitted into components dir, file, ext
-function split_path(path)
- return path:match("(.-)([^\\/]-%.?([^%.\\/]*))$")
-end
-
function handle(r)
- local cwd, _, _ = split_path(r.filename)
- for _, f in ipairs(r:get_direntries(cwd)) do
- local info = r:stat(cwd .. f)
+ local dir = r.context_document_root
+ for _, f in ipairs(r:get_direntries(dir)) do
+ local info = r:stat(dir .. "/" .. f)
if info then
local mtime = os.date(fmt, info.mtime / 1000000)
local ftype = (info.filetype == 2) and "[dir] " or "[file]"
- r:puts( ("%s %s %10i %s\n"):format(ftype, mtime, info.size, f) )
+ r:puts( ("%s %s %10i %s\n"):format(ftype, mtime, info.size, f) )
end
end
end
diff --git a/docs/manual/mod/mod_lua.xml.fr b/docs/manual/mod/mod_lua.xml.fr
index a58906a270..125c34a9ea 100644
--- a/docs/manual/mod/mod_lua.xml.fr
+++ b/docs/manual/mod/mod_lua.xml.fr
@@ -1,7 +1,7 @@
-
+
diff --git a/docs/manual/mod/mod_lua.xml.meta b/docs/manual/mod/mod_lua.xml.meta
index b55c7710e9..8fc1a0efdf 100644
--- a/docs/manual/mod/mod_lua.xml.meta
+++ b/docs/manual/mod/mod_lua.xml.meta
@@ -8,6 +8,6 @@
en
- fr
+ fr