Changeset

2784:ba999840f318

mod_register_redirect: Import configmanager correctly (fixes #820)
author t2d <td@tem.li>
date Fri, 06 Oct 2017 19:45:38 +0200
parents 2783:8d1634b71066
children 2785:2023cba9ead0
files mod_register_redirect/mod_register_redirect.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_redirect/mod_register_redirect.lua	Thu Oct 05 15:59:54 2017 +0100
+++ b/mod_register_redirect/mod_register_redirect.lua	Fri Oct 06 19:45:38 2017 +0200
@@ -6,7 +6,7 @@
 -- Redirects IP addresses not in the whitelist to a web page or another method to complete the registration.
 
 local st = require "util.stanza"
-local cman = configmanager
+local cman = require "core.configmanager"
 
 local ip_wl = module:get_option_set("registration_whitelist", { "127.0.0.1", "::1" })
 local url = module:get_option_string("registration_url", nil)