]> granicus.if.org Git - apache/commitdiff
Update.
authorGuenter Knauf <fuankg@apache.org>
Sun, 30 Jun 2013 21:09:10 +0000 (21:09 +0000)
committerGuenter Knauf <fuankg@apache.org>
Sun, 30 Jun 2013 21:09:10 +0000 (21:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1498183 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.html.en
docs/manual/mod/mod_lua.xml.fr

index c800e63a73f0d461f3aea60ec5dc889a828fe61c..5f7223276f169d338f2532212b760b9995f367e8 100644 (file)
@@ -782,7 +782,7 @@ local url = r:construct_url(r.uri)
 
 
 <pre class="prettyprint lang-lua">
-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([mtime]) -- Sets the file modification time to current time or to option
 <pre class="prettyprint lang-lua">
 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
index ea4c668ece55fea9192653453706cbeae9084334..1dc3b240c2cf84b5a4b309f1e23e027245ed2a89 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1493935:1496483 (outdated) -->
+<!-- English Revision: 1493935:1498182 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->