summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-05 19:36:50 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-05 19:36:50 +0000
commitdf3ee4c199242599921d8874656619d07ea14102 (patch)
tree76b77dea99d0ebe290d98a6aedf36ced18c936a8
parent9fa385a7eca04165557422abed78a23c678381b5 (diff)
libs/core: fix undefined tostring() in network model
-rw-r--r--libs/core/luasrc/model/network.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/core/luasrc/model/network.lua b/libs/core/luasrc/model/network.lua
index aaa39086a..d682aa954 100644
--- a/libs/core/luasrc/model/network.lua
+++ b/libs/core/luasrc/model/network.lua
@@ -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