Comparison

core/hostmanager.lua @ 1848:0033359aeb70

hostmanager: Only load vhosts, not components
author Matthew Wild <mwild1@gmail.com>
date Wed, 30 Sep 2009 11:01:21 +0100
parent 1614:951ed38ad64f
child 1893:2d202336c9b6
comparison
equal deleted inserted replaced
1846:fdb43fc1bafc 1848:0033359aeb70
22 22
23 local function load_enabled_hosts(config) 23 local function load_enabled_hosts(config)
24 local defined_hosts = config or configmanager.getconfig(); 24 local defined_hosts = config or configmanager.getconfig();
25 25
26 for host, host_config in pairs(defined_hosts) do 26 for host, host_config in pairs(defined_hosts) do
27 if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) then 27 if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) and not host_config.core.component_module then
28 activate(host, host_config); 28 activate(host, host_config);
29 end 29 end
30 end 30 end
31 eventmanager.fire_event("hosts-activated", defined_hosts); 31 eventmanager.fire_event("hosts-activated", defined_hosts);
32 hosts_loaded_once = true; 32 hosts_loaded_once = true;