# HG changeset patch # User jbe # Date 1335030625 -7200 # Node ID 343e121178d1c1a6e07864430f9597417399d5e8 # Parent ebdc20b7048b7267464fce7afefcdafb7af9d938 Fixed error in "load" Lua5.1 compatibility diff -r ebdc20b7048b -r 343e121178d1 framework/cgi-bin/webmcp.lua --- a/framework/cgi-bin/webmcp.lua Tue Apr 17 16:26:32 2012 +0200 +++ b/framework/cgi-bin/webmcp.lua Sat Apr 21 19:50:25 2012 +0200 @@ -9,7 +9,7 @@ do local old_load = load function load(ld, ...) - if type(ld) == string then + if type(ld) == "string" then local done = false local func = function() if not done then @@ -28,7 +28,6 @@ if not WEBMCP_PATH then WEBMCP_PATH = "../" end - do package.path = WEBMCP_PATH .. 'lib/?.lua;' .. package.path -- find out which file name extension shared libraries have @@ -63,7 +62,7 @@ if option and option ~= "" and option ~= "0" then cgi = nil else - rocketcgi = require 'rocketcgi' + rocketcgi = require 'rocketcgi' -- TODO: no "rocketcgi" alias cgi = rocketcgi end end