* luci/libs: uvl: store valueof values as associative table

This commit is contained in:
Jo-Philipp Wich 2008-08-24 18:33:25 +00:00
parent e124eec0e8
commit a0b9f952e5

View file

@ -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