webmcp
diff framework/env/request/set_perm_param.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 | d69106e271fc |
children |
line diff
1.1 --- a/framework/env/request/set_perm_param.lua Mon Mar 16 23:21:18 2015 +0100 1.2 +++ b/framework/env/request/set_perm_param.lua Tue Mar 17 11:42:34 2015 +0100 1.3 @@ -9,5 +9,7 @@ 1.4 --]]-- 1.5 1.6 function request.set_perm_param(name, value) 1.7 - request._perm_params[name] = value 1.8 + request.configure(function() 1.9 + request._perm_params[name] = value 1.10 + end) 1.11 end