From 16b68f25144ef6d7150ba098145d231bebdbf7ad Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 26 Sep 2008 18:17:31 +0000 Subject: Removed the languages and most error descriptions from validator.lua. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1534 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-model.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tinydns-model.lua b/tinydns-model.lua index 07a8579..f84b103 100644 --- a/tinydns-model.lua +++ b/tinydns-model.lua @@ -293,8 +293,7 @@ end function createconfigfile(self, configfile, userid) configfile.errtxt = "Failed to create file" local path = configfile.value.filename.value - local validfilepath, filepatherror = validator.is_valid_filename(path,configdir) - if (validfilepath) then + if validator.is_valid_filename(path,configdir) then if (fs.is_file(path)) then configfile.value.filename.errtxt = "File already exists" else @@ -311,7 +310,7 @@ function createconfigfile(self, configfile, userid) end end else - configfile.value.filename.errtxt = filepatherror + configfile.value.filename.errtxt = "Invalid filename" end return configfile -- cgit v1.2.3