From c29f12712dbb82da5e0351126a9896ac9e986fc1 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 21:00:17 +0000 Subject: Change use of require to work with Lua 5.2 --- openntpd-config-html.lsp | 2 +- openntpd-details-html.lsp | 2 +- openntpd-model.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp index b478495..e4bf203 100644 --- a/openntpd-config-html.lsp +++ b/openntpd-config-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/openntpd-details-html.lsp b/openntpd-details-html.lsp index b9ec189..9be71b9 100644 --- a/openntpd-details-html.lsp +++ b/openntpd-details-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/openntpd-model.lua b/openntpd-model.lua index 746db69..44139c1 100644 --- a/openntpd-model.lua +++ b/openntpd-model.lua @@ -1,7 +1,7 @@ module (..., package.seeall) -- Load libraries -require("modelfunctions") +modelfunctions = require("modelfunctions") fs = require("acf.fs") format = require("acf.format") -- cgit v1.2.3