luci-app-qos: remove support for mini admin
[project/luci.git] / applications / luci-qos / luasrc / controller / qos.lua
index 0222806..4a7092d 100644 (file)
@@ -11,19 +11,16 @@ You may obtain a copy of the License at
 
 $Id$
 ]]--
+
 module("luci.controller.qos", package.seeall)
 
 function index()
-       if not luci.fs.isfile("/etc/config/qos") then
+       if not nixio.fs.access("/etc/config/qos") then
                return
        end
        
-       local page = entry({"admin", "network", "qos"}, cbi("qos/qos"), "QoS")
-       page.i18n = "qos"
-       page.dependent = true
-       
-       
-       local page = entry({"mini", "network", "qos"}, cbi("qos/qosmini"), "QoS")
-       page.i18n = "qos"
+       local page
+
+       page = entry({"admin", "network", "qos"}, cbi("qos/qos"), _("QoS"))
        page.dependent = true
-end
\ No newline at end of file
+end