diff options
author | Guenter Knauf <fuankg@apache.org> | 2013-06-30 20:53:31 +0000 |
---|---|---|
committer | Guenter Knauf <fuankg@apache.org> | 2013-06-30 20:53:31 +0000 |
commit | 9b3df70896dd32a15eb00f8164e600804dd92d29 (patch) | |
tree | 2b5dedf3676ce7e7d1645aa0fc2c31ec1126631e | |
parent | 9d4128bb9a68185fe87e3fbc7de6d77f4ed8c0fc (diff) | |
download | httpd-9b3df70896dd32a15eb00f8164e600804dd92d29.tar.gz |
Update.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1498180 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | docs/manual/mod/mod_lua.html.en | 15 | ||||
-rw-r--r-- | docs/manual/mod/mod_lua.xml.fr | 2 | ||||
-rw-r--r-- | docs/manual/mod/mod_lua.xml.meta | 2 |
3 files changed, 7 insertions, 12 deletions
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) <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(file [,mtime]) -- Sets the file modification time to current time or to <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 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 @@ <?xml version="1.0"?> <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd"> <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?> -<!-- English Revision : 1495666 --> +<!-- English Revision: 1495666:1498179 (outdated) --> <!-- French translation : Lucien GENTIS --> <!-- Reviewed by : Vincent Deffontaines --> 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 @@ <variants> <variant>en</variant> - <variant>fr</variant> + <variant outdated="yes">fr</variant> </variants> </metafile> |