From: Jo-Philipp Wich Date: Sat, 30 Oct 2010 02:31:43 +0000 (+0000) Subject: modules/admin-full: fix usage of network model in network controller X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=87fd9de5b6e5cc2d319c896f4ab7b3ad0c56ae7e;p=openwrt-luci.git modules/admin-full: fix usage of network model in network controller --- diff --git a/modules/admin-full/luasrc/controller/admin/network.lua b/modules/admin-full/luasrc/controller/admin/network.lua index 896b4be06a..950285d588 100644 --- a/modules/admin-full/luasrc/controller/admin/network.lua +++ b/modules/admin-full/luasrc/controller/admin/network.lua @@ -156,7 +156,7 @@ end function wifi_delete(network) local ntm = require "luci.model.network".init() - ntm:del_network(network) + ntm:del_wifinet(network) ntm:save("wireless") luci.http.redirect(luci.dispatcher.build_url("admin/network/wireless"))