Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
64e350e1
Commit
64e350e1
authored
Apr 09, 2018
by
Mathias Goebel
Browse files
fixes
#18
parent
db3224c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/config/config.xqm
View file @
64e350e1
...
...
@@ -110,13 +110,13 @@ declare function config:keys() {
};
declare function config:module-get($module-name as xs:string, $key as xs:string) as item()? {
let $module := $config:configDoc//
module
[string(@key)=$module-name]
let $module := $config:configDoc//
*
[string(@key)=$module-name]
return
$module/param[ string(@key)=$key ]/node()
};
declare function config:module-get($module-name as xs:string, $key as xs:string, $default as item()?) as item()? {
let $value := config:module-get($module-name
, $key)
let $value := config:module-get($module-name, $key)
return if (empty($value)) then
$default
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment