diff options
Diffstat (limited to 'applications/luci-app-banip')
-rw-r--r-- | applications/luci-app-banip/luasrc/controller/banip.lua | 8 | ||||
-rw-r--r-- | applications/luci-app-banip/luasrc/view/banip/sourcelist.htm | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/applications/luci-app-banip/luasrc/controller/banip.lua b/applications/luci-app-banip/luasrc/controller/banip.lua index 3d75bec4d0..42328d7ea4 100644 --- a/applications/luci-app-banip/luasrc/controller/banip.lua +++ b/applications/luci-app-banip/luasrc/controller/banip.lua @@ -51,13 +51,7 @@ function status_update() end function log_view() - local content - - if nixio.fs.access("/var/log/messages") then - content = util.trim(util.exec("grep -F 'banIP-' /var/log/messages")) - else - content = util.trim(util.exec("logread -e 'banIP-' 2>/dev/null")) - end + local content = util.trim(util.exec("logread -e 'banIP-' 2>/dev/null")) or "" if content == "" then content = "No banIP related logs yet!" diff --git a/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm b/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm index 743886f884..12240e5ae4 100644 --- a/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm +++ b/applications/luci-app-banip/luasrc/view/banip/sourcelist.htm @@ -27,7 +27,7 @@ local anonclass = (not self.anonymous or self.sectiontitle) and "named" or "ano for i, k in ipairs(self:cfgsections()) do section = k local sectionname = striptags((type(self.sectiontitle) == "function") and self:sectiontitle(section) or k) - local sectiontitle = ifattr(sectionname and (not self.anonymous or self.sectiontitle), "data-title", sectionname) + local sectiontitle = ifattr(sectionname and (not self.anonymous or self.sectiontitle), "data-title", sectionname, true) isempty = false scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } -%> |