diff options
author | Steven Barth <steven@midlink.org> | 2009-06-21 13:42:26 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-06-21 13:42:26 +0000 |
commit | 30b216f774c2404a965807ddb93a4a4b2aaeac04 (patch) | |
tree | 2d4bbdadc263f495e358af0fda9baf5b02274c3b /libs/cbi | |
parent | 2baab00b19fc6eb4e0aca4da035292e37d94a640 (diff) |
Drop support for luaposix and bitlib (obsoleted by nixio)
Mark luci.fs as deprecated
Diffstat (limited to 'libs/cbi')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/filebrowser.htm | 8 | ||||
-rw-r--r-- | libs/cbi/luasrc/view/cbi/upload.htm | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libs/cbi/luasrc/view/cbi/filebrowser.htm b/libs/cbi/luasrc/view/cbi/filebrowser.htm index 0e223a933..5eda993b6 100644 --- a/libs/cbi/luasrc/view/cbi/filebrowser.htm +++ b/libs/cbi/luasrc/view/cbi/filebrowser.htm @@ -66,10 +66,10 @@ $Id$ local filestat = luci.fs.stat( filepath ) local baseurl = luci.dispatcher.build_url('admin', 'filebrowser') - if filestat and filestat.type == "regular" then + if filestat and filestat.type == "reg" then table.remove( path, #path ) filepath = table.concat( path, '/' ) .. '/' - elseif not ( filestat and filestat.type == "directory" ) then + elseif not ( filestat and filestat.type == "dir" ) then path = { '' } filepath = '/' else @@ -99,7 +99,7 @@ $Id$ <ul> <% for _, e in luci.util.vspairs(entries) do local stat = luci.fs.stat(filepath..e) - if e ~= '.' and e ~= '..' and stat and stat.type == 'directory' then + if e ~= '.' and e ~= '..' and stat and stat.type == 'dir' then -%> <li class="dir"> <img src="/luci-static/resources/cbi/folder.png" alt="Directory" /> @@ -109,7 +109,7 @@ $Id$ <% for _, e in luci.util.vspairs(entries) do local stat = luci.fs.stat(filepath..e) - if stat and stat.type ~= 'directory' then + if stat and stat.type ~= 'dir' then -%> <li class="file"> <img src="/luci-static/resources/cbi/file.png" alt="File" /> diff --git a/libs/cbi/luasrc/view/cbi/upload.htm b/libs/cbi/luasrc/view/cbi/upload.htm index 2c293cbdd..a4ab0c958 100644 --- a/libs/cbi/luasrc/view/cbi/upload.htm +++ b/libs/cbi/luasrc/view/cbi/upload.htm @@ -19,7 +19,7 @@ $Id$ -%> <%+cbi/valueheader%> <% if v then %> - <%:cbi_upload Uploaded File%> (<%=t.byte_format(luci.fs.stat(v).size or 0)%>) + <%:cbi_upload Uploaded File%> (<%=t.byte_format(luci.fs.stat(v, "size") or 0)%>) <input type="hidden"<%= attr("value", v) .. attr("name", cbid) .. attr("id", cbid) %> /> <input class="cbi-input-image" type="image" value="<%:cbi_replace%>" name="cbi.rlf.<%=section .. "." .. self.option%>" alt="<%:cbi_replace%>" title="<%:cbi_replace%>" src="<%=resource%>/cbi/reload.gif" /> <% else %> |