diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-08-04 15:55:56 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-08-04 15:55:56 +0000 |
commit | a0c9b5cb07e4b691874e858527e36cb8c83c56d0 (patch) | |
tree | f198cd9f9ced2e66998aa1db6cbe1c265f03862b /acf-hooks.lua | |
parent | df0d2e0e18549e8fe348d08769c929340d75131e (diff) | |
download | acf-core-a0c9b5cb07e4b691874e858527e36cb8c83c56d0.tar.bz2 acf-core-a0c9b5cb07e4b691874e858527e36cb8c83c56d0.tar.xz |
Remove trailing whitespace
Diffstat (limited to 'acf-hooks.lua')
-rw-r--r-- | acf-hooks.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/acf-hooks.lua b/acf-hooks.lua index b301c5d..634cbf8 100644 --- a/acf-hooks.lua +++ b/acf-hooks.lua @@ -2,14 +2,14 @@ -- This file is loaded into self.conf.app_hooks using loadfile; -- it must be correct lua source code. -- The current format for this file is a table for each controller, --- and then values (or tables) under the controller. --- +-- and then values (or tables) under the controller. +-- -- The purpose of this file is to add user-specified hooks into the --- acf code. --- +-- acf code. +-- -- Currently the only use for this is a per-controller audit function -- (this overrides the acf.conf audit_precommit / postcommit globals) --- +-- -- audit_precommit | audit_postcommit can be strings (like in acf.conf) -- or functions. For functions, three variables are passed: -- self, CONFFILE, and TEMPFILE @@ -18,7 +18,7 @@ format = require("acf.format") local precommit=function(self, conf, temp) local logfile = "/var/log/acf-" .. self.conf.controller .. ".log" - fs.write_line_file (logfile, "#---- BEGIN TRANSACTION - " .. + fs.write_line_file (logfile, "#---- BEGIN TRANSACTION - " .. os.date() .. "\n" .. self.sessiondata.userinfo.userid .. " modifed " .. conf .. " as follows:") os.execute ("diff -u " .. format.escapespecialcharacters(conf) .. " " .. format.escapespecialcharacters(temp) .. " >>" .. format.escapespecialcharacters(logfile)) @@ -28,7 +28,7 @@ local precommit=function(self, conf, temp) interfaces = { - -- note that we must define the audit command as a + -- note that we must define the audit command as a -- new function to wrap the local func: audit_precommit=function(self,conf,temp) precommit(self, conf, temp) @@ -38,6 +38,6 @@ interfaces = { } -- but after defining the audit_* commands as direct functions, --- assining other controllers to be the same is fine... +-- assining other controllers to be the same is fine... tinydns=interfaces |