summaryrefslogtreecommitdiffstats
path: root/app/acf-util/skins-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'app/acf-util/skins-model.lua')
-rw-r--r--app/acf-util/skins-model.lua10
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