diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:44:31 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-10-09 20:44:31 +0000 |
commit | f7a78fe106aeb9119d920b708d822f3a6440895f (patch) | |
tree | 92e0fc2c062984bcdd8fd508b4832b1216ab155c | |
parent | 0a24610cdd04ab5bc268c5e80d210746d24af879 (diff) | |
download | acf-dhcp-f7a78fe106aeb9119d920b708d822f3a6440895f.tar.bz2 acf-dhcp-f7a78fe106aeb9119d920b708d822f3a6440895f.tar.xz |
Change use of require to work with Lua 5.2
-rw-r--r-- | dhcp-home-html.lsp | 2 | ||||
-rw-r--r-- | dhcp-listfiles-html.lsp | 2 | ||||
-rw-r--r-- | dhcp-listhosts-html.lsp | 2 | ||||
-rw-r--r-- | dhcp-listsubnets-html.lsp | 2 | ||||
-rw-r--r-- | dhcp-model.lua | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/dhcp-home-html.lsp b/dhcp-home-html.lsp index 4f11fae..0cfc404 100644 --- a/dhcp-home-html.lsp +++ b/dhcp-home-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"settings", "edithost", "delhost", "createhost", "editsubnet", "delsubnet", "createsubnet"}, session) %> diff --git a/dhcp-listfiles-html.lsp b/dhcp-listfiles-html.lsp index a2716c2..c733bfd 100644 --- a/dhcp-listfiles-html.lsp +++ b/dhcp-listfiles-html.lsp @@ -1,5 +1,5 @@ <% local data, viewlibrary, page_info, session = ... -require("htmlviewfunctions") +htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> diff --git a/dhcp-listhosts-html.lsp b/dhcp-listhosts-html.lsp index 140f296..4c4cde8 100644 --- a/dhcp-listhosts-html.lsp +++ b/dhcp-listhosts-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"edithost", "delhost", "createhost"}, session) %> diff --git a/dhcp-listsubnets-html.lsp b/dhcp-listsubnets-html.lsp index 2062951..cfefa6b 100644 --- a/dhcp-listsubnets-html.lsp +++ b/dhcp-listsubnets-html.lsp @@ -1,5 +1,5 @@ <% local view, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"editsubnet", "delsubnet", "createsubnet"}, session) %> diff --git a/dhcp-model.lua b/dhcp-model.lua index f266c8d..81c758f 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -3,7 +3,7 @@ module (..., package.seeall) --- get additional libraries -require("modelfunctions") +modelfunctions = require("modelfunctions") validator = require("acf.validator") fs = require("acf.fs") |