hostmanager: Only load vhosts, not components

Wed, 30 Sep 2009 11:01:21 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 30 Sep 2009 11:01:21 +0100
changeset 1848
0033359aeb70
parent 1846
fdb43fc1bafc
child 1849
5529d3c8eee7

hostmanager: Only load vhosts, not components

core/hostmanager.lua file | annotate | diff | comparison | revisions
--- a/core/hostmanager.lua	Tue Sep 29 19:54:31 2009 +0100
+++ b/core/hostmanager.lua	Wed Sep 30 11:01:21 2009 +0100
@@ -24,7 +24,7 @@
 	local defined_hosts = config or configmanager.getconfig();
 	
 	for host, host_config in pairs(defined_hosts) do
-		if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) then
+		if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) and not host_config.core.component_module then
 			activate(host, host_config);
 		end
 	end

mercurial