libs/core: fix undefined tostring() in network model
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Dec 2011 19:36:50 +0000 (19:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 5 Dec 2011 19:36:50 +0000 (19:36 +0000)
libs/core/luasrc/model/network.lua

index aaa3908..d682aa9 100644 (file)
@@ -17,8 +17,11 @@ limitations under the License.
 
 ]]--
 
 
 ]]--
 
-local type, next, pairs, ipairs, loadfile, table, tonumber, math, i18n
-       = type, next, pairs, ipairs, loadfile, table, tonumber, math, luci.i18n
+local type, next, pairs, ipairs, loadfile, table
+       = type, next, pairs, ipairs, loadfile, table
+
+local tonumber, tostring, math, i18n
+       = tonumber, tostring, math, luci.i18n
 
 local require = require
 
 
 local require = require