webmcp

diff framework/env/charset/__init.lua @ 262:c3d539e33710

Replaced request.add_initializer(...) and request.add_variable(...) with request.for_each(...) and request.configure(...) which both execute the passed function once in any case when being called
author jbe
date Tue Mar 17 11:42:34 2015 +0100 (2015-03-17)
parents f491011ebe16
children
line diff
     1.1 --- a/framework/env/charset/__init.lua	Mon Mar 16 23:21:18 2015 +0100
     1.2 +++ b/framework/env/charset/__init.lua	Tue Mar 17 11:42:34 2015 +0100
     1.3 @@ -1,1 +1,3 @@
     1.4 -request.add_variable(charset, "_current", "UTF-8")
     1.5 +request.for_each(function()
     1.6 +  charset._current = "UTF-8"
     1.7 +end)

Impressum / About Us