luci/applications/luci-app-mjpg-streamer/luasrc/controller/mjpg-streamer.lua
Jo-Philipp Wich 13e421e093 luci-app-mjpg-streamer: remove reference to luci.i18n.loadc()
The i18n.loadc() function has been a no-op since almost six years.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-11-05 11:01:45 +01:00

16 lines
435 B
Lua

-- Copyright 2014 Roger D <rogerdammit@gmail.com>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.mjpg-streamer", package.seeall)
function index()
require("luci.i18n")
if not nixio.fs.access("/etc/config/mjpg-streamer") then
return
end
local page = entry({"admin", "services", "mjpg-streamer"}, cbi("mjpg-streamer"), _("MJPG-streamer"))
page.i18n = "mjpg-streamer"
page.dependent = true
end