webmcp
diff framework/env/slot/set_layout.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 | 9fdfb27f8e67 |
children | 93ebbc1e5dbc |
line diff
1.1 --- a/framework/env/slot/set_layout.lua Mon Mar 16 23:21:18 2015 +0100 1.2 +++ b/framework/env/slot/set_layout.lua Tue Mar 17 11:42:34 2015 +0100 1.3 @@ -9,6 +9,8 @@ 1.4 --]]-- 1.5 1.6 function slot.set_layout(layout_ident, content_type) 1.7 - slot._current_layout = layout_ident 1.8 - slot._content_type = content_type 1.9 + request.configure(function() 1.10 + slot._current_layout = layout_ident 1.11 + slot._content_type = content_type 1.12 + end) 1.13 end