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>
This commit is contained in:
parent
7f6fc1681f
commit
61bc034b8d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue