projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e124eec
)
* luci/libs: uvl: store valueof values as associative table
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 24 Aug 2008 18:33:25 +0000
(18:33 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 24 Aug 2008 18:33:25 +0000
(18:33 +0000)
libs/uvl/luasrc/uvl.lua
patch
|
blob
|
history
diff --git
a/libs/uvl/luasrc/uvl.lua
b/libs/uvl/luasrc/uvl.lua
index cc1d8b9d6dfe2d32d19c0bd1e949e30d1f49ce6a..ed0bd13e1b5fe177053dbd7f3350663de4a6a85e 100644
(file)
--- a/
libs/uvl/luasrc/uvl.lua
+++ b/
libs/uvl/luasrc/uvl.lua
@@
-709,9
+709,9
@@
function UVL._read_reference( self, values )
return nil, 'Illegal reference "%s" to an anonymous section'
% value
end
- table.insert( val, k )
+ val[k] = k -- XXX: title/description would be nice
elseif v[ref[3]] then
- table.insert( val, v[ref[3]] )
+ val[v[ref[3]]] = v[ref[3]] -- XXX: dito
end
end
end