From f4818065de65fde4b2a76f1ea0c13e92fb448822 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 9 Oct 2013 20:59:17 +0000 Subject: Change use of require to work with Lua 5.2 --- opennhrp-editinterface-html.lsp | 2 +- opennhrp-listinterfaces-html.lsp | 2 +- opennhrp-model.lua | 2 +- opennhrp-show-html.lsp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opennhrp-editinterface-html.lsp b/opennhrp-editinterface-html.lsp index 6caa8d1..76d37a2 100644 --- a/opennhrp-editinterface-html.lsp +++ b/opennhrp-editinterface-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/opennhrp-listinterfaces-html.lsp b/opennhrp-listinterfaces-html.lsp index 9794645..044de2e 100644 --- a/opennhrp-listinterfaces-html.lsp +++ b/opennhrp-listinterfaces-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/opennhrp-model.lua b/opennhrp-model.lua index c59e22e..29f2e1f 100644 --- a/opennhrp-model.lua +++ b/opennhrp-model.lua @@ -1,7 +1,7 @@ module(..., package.seeall) -- Load libraries -require("modelfunctions") +modelfunctions = require("modelfunctions") validator = require("acf.validator") fs = require("acf.fs") diff --git a/opennhrp-show-html.lsp b/opennhrp-show-html.lsp index 241973d..e168863 100644 --- a/opennhrp-show-html.lsp +++ b/opennhrp-show-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary, page_info = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> -- cgit v1.2.3