webmcp

diff framework/env/locale/__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/locale/__init.lua	Mon Mar 16 23:21:18 2015 +0100
     1.2 +++ b/framework/env/locale/__init.lua	Tue Mar 17 11:42:34 2015 +0100
     1.3 @@ -1,4 +1,6 @@
     1.4 -request.add_variable(locale, "_current_data", {})
     1.5  locale._translation_tables = {}
     1.6  locale._empty_translation_table = {}
     1.7  
     1.8 +request.for_each(function()
     1.9 +  locale._current_data = {}
    1.10 +end)

Impressum / About Us