webmcp

view demo-app/app/main/index/_action/set_lang.lua @ 146:7912a05ebc3f

Moved lua_pop(L, 1) call to conditional expression and added documentation in JSON library
author jbe
date Wed Jul 30 20:54:42 2014 +0200 (2014-07-30)
parents 9fdfb27f8e67
children
line source
1 app.session.user.lang = param.get("lang")
2 app.session.user:save()
4 locale.set{ lang = app.session.user.lang }
6 slot.put_into("notice", _"Language changed")

Impressum / About Us