diff options
Diffstat (limited to 'applications/luci-mmc-over-gpio')
-rw-r--r-- | applications/luci-mmc-over-gpio/luasrc/controller/mmc_over_gpio.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/applications/luci-mmc-over-gpio/luasrc/controller/mmc_over_gpio.lua b/applications/luci-mmc-over-gpio/luasrc/controller/mmc_over_gpio.lua index 9ee2a9dec6..5abceab7aa 100644 --- a/applications/luci-mmc-over-gpio/luasrc/controller/mmc_over_gpio.lua +++ b/applications/luci-mmc-over-gpio/luasrc/controller/mmc_over_gpio.lua @@ -16,13 +16,13 @@ $Id$ module("luci.controller.mmc_over_gpio", package.seeall) function index() - require("luci.i18n") - luci.i18n.loadc("mmc_over_gpio") - if not nixio.fs.access("/etc/config/mmc_over_gpio") then - return - end - - local page = entry({"admin", "system", "mmc_over_gpio"}, cbi("mmc_over_gpio"), luci.i18n.translate("MMC/SD driver configuration"), 60) - page.i18n = "mmc_over_gpio" - page.dependent = true + if not nixio.fs.access("/etc/config/mmc_over_gpio") then + return + end + + local page + + page = entry({"admin", "system", "mmc_over_gpio"}, cbi("mmc_over_gpio"), _("MMC/SD driver configuration"), 60) + page.i18n = "mmc_over_gpio" + page.dependent = true end |