webmcp

diff framework/env/execute/chunk.lua @ 206:eb3e236d261d

Code cleanup and work on Moonbridge integration
author jbe
date Fri Jan 09 22:28:39 2015 +0100 (2015-01-09)
parents 48ee8826efbe
children d3273921ce75
line diff
     1.1 --- a/framework/env/execute/chunk.lua	Fri Jan 09 21:32:23 2015 +0100
     1.2 +++ b/framework/env/execute/chunk.lua	Fri Jan 09 22:28:39 2015 +0100
     1.3 @@ -24,17 +24,14 @@
     1.4  
     1.5  function execute.chunk(args)
     1.6    local file_path = args.file_path
     1.7 -  local app       = args.app
     1.8 +  local app       = args.app or WEBMCP_APP_NAME
     1.9    local module    = args.module
    1.10    local chunk     = args.chunk
    1.11    local id        = args.id
    1.12    local params    = args.params
    1.13  
    1.14 -  app = app or request.get_app_name()
    1.15 -
    1.16    file_path = file_path or encode.file_path(
    1.17 -    request.get_app_basepath(),
    1.18 -    'app', app, module, chunk .. '.lua'
    1.19 +    WEBMCP_BASE_PATH, 'app', app, module, chunk .. '.lua'
    1.20    )
    1.21  
    1.22    local func, load_errmsg = loadfile(file_path)

Impressum / About Us