fix subdomain for static rule on registering module

This commit is contained in:
Daniel Gerber 2011-01-06 16:43:49 +01:00
parent 4c76607553
commit 8482c8b024

View file

@ -32,7 +32,7 @@ def _register_module(module, static_path):
state.app.add_url_rule(path + '/<path:filename>',
endpoint='%s.static' % module.name,
view_func=module.send_static_file,
subdomain=module.subdomain)
subdomain=state.subdomain)
return _register