Mercurial > prosody-modules
comparison mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 183:9d4fd01443eb
mod_muc_log_http: ensure to have the default being "prosody"
author | Thilo Cestonaro <thilo@cestona.ro> |
---|---|
date | Tue, 22 Jun 2010 10:56:49 +0200 |
parents | f29be6c49501 |
children | 03cb7511ae54 |
comparison
equal
deleted
inserted
replaced
181:15bc93c85a08 | 183:9d4fd01443eb |
---|---|
37 | 37 |
38 --[[ | 38 --[[ |
39 * Default templates for the html output. | 39 * Default templates for the html output. |
40 ]]-- | 40 ]]-- |
41 local html = {}; | 41 local html = {}; |
42 local theme = "prosody"; | 42 local theme; |
43 | 43 |
44 local function checkDatastorePathExists(node, host, today, create) | 44 local function checkDatastorePathExists(node, host, today, create) |
45 create = create or false; | 45 create = create or false; |
46 local path = data_getpath(node, host, datastore, "dat", true); | 46 local path = data_getpath(node, host, datastore, "dat", true); |
47 path = path:gsub("/[^/]*$", ""); | 47 path = path:gsub("/[^/]*$", ""); |
784 end | 784 end |
785 if config.showJoin == nil then | 785 if config.showJoin == nil then |
786 config.showJoin = true; | 786 config.showJoin = true; |
787 end | 787 end |
788 | 788 |
789 theme = config.theme or "default"; | 789 theme = config.theme or "prosody"; |
790 local themePath = themesParent .. "/" .. tostring(theme); | 790 local themePath = themesParent .. "/" .. tostring(theme); |
791 local attributes, err = lfs.attributes(themePath); | 791 local attributes, err = lfs.attributes(themePath); |
792 if attributes == nil or attributes.mode ~= "directory" then | 792 if attributes == nil or attributes.mode ~= "directory" then |
793 module:log("error", "Theme folder of theme \"".. tostring(theme) .. "\" isn't existing. expected Path: " .. themePath); | 793 module:log("error", "Theme folder of theme \"".. tostring(theme) .. "\" isn't existing. expected Path: " .. themePath); |
794 return false; | 794 return false; |