Comparison

mod_server_status/mod_server_status.lua @ 658:39306c770d7d

mod_server_status: remove module:set_global, with the default_host handler it's not required.
author Marco Cirillo <maranda@lightwitch.org>
date Sun, 29 Apr 2012 20:40:55 +0000
parent 657:26e61a9afb5c
child 1343:7dbde05b48a9
comparison
equal deleted inserted replaced
657:26e61a9afb5c 658:39306c770d7d
1 -- (C) 2011, Marco Cirillo (LW.Org) 1 -- (C) 2011, Marco Cirillo (LW.Org)
2 -- Display server stats in readable XML or JSON format 2 -- Display server stats in readable XML or JSON format
3 3
4 module:depends("http") 4 module:depends("http")
5 module:set_global()
6 5
7 local base_path = module:get_option_string("server_status_basepath", "/server-status/") 6 local base_path = module:get_option_string("server_status_basepath", "/server-status/")
8 local show_hosts = module:get_option_array("server_status_show_hosts", nil) 7 local show_hosts = module:get_option_array("server_status_show_hosts", nil)
9 local show_comps = module:get_option_array("server_status_show_comps", nil) 8 local show_comps = module:get_option_array("server_status_show_comps", nil)
10 local json_output = module:get_option_boolean("server_status_json", false) 9 local json_output = module:get_option_boolean("server_status_json", false)