diff options
-rw-r--r-- | app/acf_www-controller.lua | 3 |
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 |