summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-10-09 21:11:52 +0000
committerTed Trask <ttrask01@yahoo.com>2013-10-09 21:11:52 +0000
commit0dd8a81c88b4f64092e0e196150c08846929d51c (patch)
treeba8e30b191f95656ade32f92acfbaa7b953a41fc
parentfdaabc7081521eb96cd9c6b2a9585045b94289f6 (diff)
downloadacf-rrdtool-0dd8a81c88b4f64092e0e196150c08846929d51c.tar.bz2
acf-rrdtool-0dd8a81c88b4f64092e0e196150c08846929d51c.tar.xz
Change use of require to work with Lua 5.2
-rw-r--r--rrdtool-config-html.lsp2
-rw-r--r--rrdtool-createrrd-html.lsp2
-rw-r--r--rrdtool-editgraphcfg-html.lsp2
-rw-r--r--rrdtool-expert-html.lsp2
-rw-r--r--rrdtool-listgraphcfg-html.lsp2
-rw-r--r--rrdtool-listrrd-html.lsp2
-rw-r--r--rrdtool-model.lua4
-rwxr-xr-xrrdtool-newgraphcfg-html.lsp2
8 files changed, 9 insertions, 9 deletions
diff --git a/rrdtool-config-html.lsp b/rrdtool-config-html.lsp
index 88aced9..2c24500 100644
--- a/rrdtool-config-html.lsp
+++ b/rrdtool-config-html.lsp
@@ -1,5 +1,5 @@
<% local data, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
%>
<% htmlviewfunctions.displaycommandresults({"install","editgraphcfg"}, session) %>
diff --git a/rrdtool-createrrd-html.lsp b/rrdtool-createrrd-html.lsp
index 507fca9..8522a0d 100644
--- a/rrdtool-createrrd-html.lsp
+++ b/rrdtool-createrrd-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
%>
<% htmlviewfunctions.displaycommandresults({"createrrd"}, session) %>
diff --git a/rrdtool-editgraphcfg-html.lsp b/rrdtool-editgraphcfg-html.lsp
index 12f88c3..1d5f446 100644
--- a/rrdtool-editgraphcfg-html.lsp
+++ b/rrdtool-editgraphcfg-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% if form.type == "form" then %>
diff --git a/rrdtool-expert-html.lsp b/rrdtool-expert-html.lsp
index 266fb53..53f29c0 100644
--- a/rrdtool-expert-html.lsp
+++ b/rrdtool-expert-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<%
--[[ Temporary comment to speed things up
diff --git a/rrdtool-listgraphcfg-html.lsp b/rrdtool-listgraphcfg-html.lsp
index cd36d06..a8657da 100644
--- a/rrdtool-listgraphcfg-html.lsp
+++ b/rrdtool-listgraphcfg-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/rrdtool-listrrd-html.lsp b/rrdtool-listrrd-html.lsp
index 7e425b1..65a5ae5 100644
--- a/rrdtool-listrrd-html.lsp
+++ b/rrdtool-listrrd-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info, session = ...
-require("htmlviewfunctions")
+htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
diff --git a/rrdtool-model.lua b/rrdtool-model.lua
index 2a52102..7b3895a 100644
--- a/rrdtool-model.lua
+++ b/rrdtool-model.lua
@@ -1,8 +1,8 @@
module(..., package.seeall)
-- Load libraries
-require("modelfunctions")
-require("posix")
+modelfunctions = require("modelfunctions")
+posix = require("posix")
fs = require("acf.fs")
format = require("acf.format")
date = require("acf.date")
diff --git a/rrdtool-newgraphcfg-html.lsp b/rrdtool-newgraphcfg-html.lsp
index 005ac4d..5371cf8 100755
--- a/rrdtool-newgraphcfg-html.lsp
+++ b/rrdtool-newgraphcfg-html.lsp
@@ -1,5 +1,5 @@
<% local form, viewlibrary, page_info = ... %>
-<% require("htmlviewfunctions") %>
+<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<H1>Create new rrdtool-graph file</H1>