summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-08-12 12:09:08 +0000
committerTed Trask <ttrask01@yahoo.com>2008-08-12 12:09:08 +0000
commite552a644c3930f4bffe2ff17c331c0a035d02531 (patch)
treec26f66f84646f76405bb473f1a1012af4d9e62b9
parent29fa171ab5b048d9f74ef4c8c9ee0b7d62fc3aa3 (diff)
downloadacf-core-e552a644c3930f4bffe2ff17c331c0a035d02531.tar.bz2
acf-core-e552a644c3930f4bffe2ff17c331c0a035d02531.tar.xz
Modified acf_www to allow a view without an action to be a link instead of just a file.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1378 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--app/acf_www-controller.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua
index cd8a49f..3329830 100644
--- a/app/acf_www-controller.lua
+++ b/app/acf_www-controller.lua
@@ -119,7 +119,8 @@ end
local has_view = function(self)
require("fs")
- return fs.is_file(self.conf.appdir .. self.conf.prefix .. self.conf.controller .. "-" .. self.conf.action .. "-" .. (self.conf.viewtype or "html") .. ".lsp")
+ local file = posix.stat(self.conf.appdir .. self.conf.prefix .. self.conf.controller .. "-" .. self.conf.action .. "-" .. (self.conf.viewtype or "html") .. ".lsp", "type")
+ return file == "regular" or file == "link"
end
-- This function is made available within the view to allow loading of components