From d6e8f214d59c9f70cd6c53cf82c9977328705245 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Apr 2014 00:43:17 +0000 Subject: Changes to use new htmlviewfunctions functions and standardize logfile viewer This closes a bug where log filename was not validated --- vlc-model.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vlc-model.lua') diff --git a/vlc-model.lua b/vlc-model.lua index e210e25..5a8da68 100644 --- a/vlc-model.lua +++ b/vlc-model.lua @@ -41,7 +41,7 @@ function mymodule.getconfigfile() return modelfunctions.getfiledetails(configfile) end -function mymodule.get_filedetails() +function mymodule.getlogfile () local path=logfile local path2 if fs.is_file(configfile) then @@ -50,7 +50,7 @@ function mymodule.get_filedetails() end end if path2 then path=path2 end - return modelfunctions.getfiledetails(path) + return cfe({ value=path, label="VLC logfile" }) end function mymodule.setconfigfile(self, filedetails) -- cgit v1.2.3