projects
/
oweals
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* luci/libs/uvl: implement default value option for variable sections
[oweals/luci.git]
/
libs
/
uvl
/
luasrc
/
uvl.lua
diff --git
a/libs/uvl/luasrc/uvl.lua
b/libs/uvl/luasrc/uvl.lua
index f40063c7b4a5ce2c2ce5906eab0e203f2c8e30fa..089789a5aaf34509ca0cd6185b3ccb7c970b1395 100644
(file)
--- a/
libs/uvl/luasrc/uvl.lua
+++ b/
libs/uvl/luasrc/uvl.lua
@@
-1119,7
+1119,7
@@
end
--- Get the value of this option.
-- @return The associated configuration value
function option.value(self)
--- Get the value of this option.
-- @return The associated configuration value
function option.value(self)
- local v = self:config()
+ local v = self:config()
or self:scheme('default')
if v and self:scheme('multival') then
v = luci.util.split( v, "%s+", nil, true )
end
if v and self:scheme('multival') then
v = luci.util.split( v, "%s+", nil, true )
end