From ada03db6371b22e543423eec682cab375b3aabfd Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 20:50:04 +0000 Subject: Change use of require to work with Lua 5.2 --- heimdal-klist-html.lsp | 2 +- heimdal-model.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/heimdal-klist-html.lsp b/heimdal-klist-html.lsp index b4a13ed..2692be9 100644 --- a/heimdal-klist-html.lsp +++ b/heimdal-klist-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"kdestroy"}, session) %> diff --git a/heimdal-model.lua b/heimdal-model.lua index 7af12c4..5cd9ecc 100644 --- a/heimdal-model.lua +++ b/heimdal-model.lua @@ -1,7 +1,7 @@ module(..., package.seeall) -- Load libraries -require("modelfunctions") +modelfunctions = require("modelfunctions") fs = require("acf.fs") -- Set variables -- cgit v1.2.3