mod_version: Use the module API to read configuration options instead of configmanager

This commit is contained in:
Waqas Hussain 2009-08-07 18:27:49 +05:00
parent 1cffdf3339
commit e051a3cad0

View file

@ -16,7 +16,7 @@ module:add_feature(xmlns_version);
local version = "the best operating system ever!";
if not require "core.configmanager".get("*", "core", "hide_os_type") then
if not module:get_option("hide_os_type") then
if os.getenv("WINDIR") then
version = "Windows";
else