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:
c5278e1
)
* luci/libs/uvl: allow combined enum/valueof options
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 7 Sep 2008 00:44:54 +0000
(
00:44
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 7 Sep 2008 00:44:54 +0000
(
00:44
+0000)
libs/uvl/luasrc/uvl.lua
patch
|
blob
|
history
diff --git
a/libs/uvl/luasrc/uvl.lua
b/libs/uvl/luasrc/uvl.lua
index aada2e6c231a890f6799be801ff2a54cb5beb3eb..f40063c7b4a5ce2c2ce5906eab0e203f2c8e30fa 100644
(file)
--- a/
libs/uvl/luasrc/uvl.lua
+++ b/
libs/uvl/luasrc/uvl.lua
@@
-391,7
+391,7
@@
function UVL.read_scheme( self, scheme, alias )
return true
else
return false, so:error(ERR.SME_READ(so,bc))
- end
+ end
end
end
@@
-630,7
+630,7
@@
function UVL._read_scheme_parts( self, scheme, schemes )
local oo = so:option(r[3])
local eo = oo:enum(v.value)
- if t.type ~= "enum" then
+ if t.type ~= "enum"
and t.type ~= "reference"
then
return false, scheme:error(ERR.SME_EBADTYPE(eo))
end