summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2017-06-10 20:26:10 +0200
committerJo-Philipp Wich <jo@mein.io>2017-06-10 20:33:32 +0200
commit61bc034b8df9b5a54bc406bf35fbfd920b6e6804 (patch)
tree804dedef71648e5e1a2f80086137aa450e37030f /applications/luci-app-statistics
parent7f6fc1681f7becc514a58082e871f3855d3a123f (diff)
luci-app-statistics: support graph menu entries without corresponding labels
Properly render menu items for plugin instances that do not have a corresponding label defined. This allows for registering new graph pages solely by dropping files into /usr/lib/lua/luci/statistics/rrdtool/definitions/ Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics')
-rw-r--r--applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index 1bc0714de..443f20b0f 100644
--- a/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/applications/luci-app-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@ -88,7 +88,7 @@ function index()
_entry(
{ "admin", "statistics", "collectd", section, plugin },
cbi("luci_statistics/" .. plugin ),
- labels[plugin], j * 10
+ labels[plugin] or plugin, j * 10
)
end