diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-03 17:12:39 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-03 17:12:39 +0000 |
commit | f7398e612b7ea669020fce518b254c95d54e47ef (patch) | |
tree | e6b325bc15aa7401f0cef5ca1807cf877693d9e5 /app/acf-util/skins-model.lua | |
parent | d62056dfce1a702101a17093e0fcaaea22f5cc09 (diff) | |
download | acf-core-f7398e612b7ea669020fce518b254c95d54e47ef.tar.bz2 acf-core-f7398e612b7ea669020fce518b254c95d54e47ef.tar.xz |
Removed skins/read action and use skins/update instead
Diffstat (limited to 'app/acf-util/skins-model.lua')
-rw-r--r-- | app/acf-util/skins-model.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/acf-util/skins-model.lua b/app/acf-util/skins-model.lua index 9016e62..8ef41b9 100644 --- a/app/acf-util/skins-model.lua +++ b/app/acf-util/skins-model.lua @@ -20,21 +20,13 @@ local function list_skins(self) for i,file in ipairs(posix.dir(self.conf.wwwdir ..skin) or {}) do -- Ignore files that begins with a '.' and 'cgi-bin' and only list folders if not ((string.match(file, "^%.")) or (string.match(file, "^cgi[-]bin")) or (string.match(file, "^static")) or (posix.stat(self.conf.wwwdir .. skin .. file).type ~= "directory")) then - local entry = cfe({ value=skin..file, label=file }) - local current = self.conf.skin - entry.inuse = (skin..file == current) - table.insert(skinarray, entry) + table.insert(skinarray, skin..file) end end end return skinarray end - -mymodule.get = function (self) - return cfe({ type="list", value=list_skins(self), label="Skins" }) -end - mymodule.get_update = function (self) local skin = cfe({ type="select", value="", label="Skin", option=list_skins(self) }) if self and self.conf and self.conf.skin then |