webmcp
changeset 69:343e121178d1
Fixed error in "load" Lua5.1 compatibility
author | jbe |
---|---|
date | Sat Apr 21 19:50:25 2012 +0200 (2012-04-21) |
parents | ebdc20b7048b |
children | 593413f317f4 |
files | framework/cgi-bin/webmcp.lua |
line diff
1.1 --- a/framework/cgi-bin/webmcp.lua Tue Apr 17 16:26:32 2012 +0200 1.2 +++ b/framework/cgi-bin/webmcp.lua Sat Apr 21 19:50:25 2012 +0200 1.3 @@ -9,7 +9,7 @@ 1.4 do 1.5 local old_load = load 1.6 function load(ld, ...) 1.7 - if type(ld) == string then 1.8 + if type(ld) == "string" then 1.9 local done = false 1.10 local func = function() 1.11 if not done then 1.12 @@ -28,7 +28,6 @@ 1.13 if not WEBMCP_PATH then 1.14 WEBMCP_PATH = "../" 1.15 end 1.16 - 1.17 do 1.18 package.path = WEBMCP_PATH .. 'lib/?.lua;' .. package.path 1.19 -- find out which file name extension shared libraries have 1.20 @@ -63,7 +62,7 @@ 1.21 if option and option ~= "" and option ~= "0" then 1.22 cgi = nil 1.23 else 1.24 - rocketcgi = require 'rocketcgi' 1.25 + rocketcgi = require 'rocketcgi' -- TODO: no "rocketcgi" alias 1.26 cgi = rocketcgi 1.27 end 1.28 end