Changeset

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 181:15bc93c85a08
children 184:03cb7511ae54
files mod_muc_log_http/muc_log_http/mod_muc_log_http.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Thu Jun 17 11:24:02 2010 +0200
+++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Tue Jun 22 10:56:49 2010 +0200
@@ -39,7 +39,7 @@
 * Default templates for the html output.
 ]]--
 local html = {};
-local theme = "prosody";
+local theme;
 
 local function checkDatastorePathExists(node, host, today, create)
 	create = create or false;
@@ -786,7 +786,7 @@
 		config.showJoin = true;
 	end
 
-	theme = config.theme or "default";
+	theme = config.theme or "prosody";
 	local themePath = themesParent .. "/" .. tostring(theme);
 	local attributes, err = lfs.attributes(themePath);
 	if attributes == nil or attributes.mode ~= "directory" then