mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Updated reference to widgest_utils
This commit is contained in:
parent
24d85fa8ec
commit
f9f87a74c0
2 changed files with 6 additions and 6 deletions
|
|
@ -12,7 +12,7 @@ require ("lua_utils")
|
|||
|
||||
local dkjson = require("dkjson")
|
||||
local datasources_utils = require("datasources_utils")
|
||||
local widget_utils = require("widget_utils")
|
||||
local widgets_utils = require("widgets_utils")
|
||||
|
||||
local function reportError(msg)
|
||||
print(dkjson.encode({ success = false, message = msg }))
|
||||
|
|
@ -35,7 +35,7 @@ if (widget_data.widget_key == nil) then
|
|||
return
|
||||
end
|
||||
|
||||
local widget = widget_utils.get_widget(widget_data.widget_key)
|
||||
local widget = widgets_utils.get_widget(widget_data.widget_key)
|
||||
if (widget == nil) then
|
||||
reportError("The requested widget was not found")
|
||||
return
|
||||
|
|
@ -43,4 +43,4 @@ end
|
|||
|
||||
widget.type = widget_data.widget_type or widget.type
|
||||
-- Generate the widget response
|
||||
print(widget_utils.generate_response(widget, widget_data))
|
||||
print(widgets_utils.generate_response(widget, widget_data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue