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
c662218b
Commit
c662218b
authored
Feb 25, 2021
by
Mathias Goebel
Browse files
minor: fixes
parent
f1ec3181
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/wiki/wiki.xqm
View file @
c662218b
...
...
@@ -298,7 +298,7 @@ for $node in $nodes return
}
case element (xhtml:a)
return
if(exists($node/img)) then wiki:dokuwikiparser($node/node(), $char) else
if(exists($node/
xhtml:
img)) then wiki:dokuwikiparser($node/node(), $char) else
element xhtml:a {
attribute href {
if($node/@class = "urlextern") then
...
...
post-install.xq
View file @
c662218b
xquery
version
"3.1"
;
(: the target collection into which the app is deployed :)
declare
variable
$target
external
;
(
(: register REST APIs :)
(
for
$uri
at
$pos
in
(
collection
(
$target
)
/
base-uri
())[
ends-with
(
.,
".xqm"
)]
let
$content
:=
$uri
=>
util:binary-doc
()
=>
util:base64-decode
()
...
...
@@ -11,4 +11,5 @@ return
exrest:register-module
(
xs:anyURI
(
$uri
))
)
,
sm:chmod
(
$target
||
"/modules/wiki/wiki.xqm"
,
"rwsrwxr-x"
)
\ No newline at end of file
sm:chmod
(
$target
||
"/modules/wiki/wiki.xqm"
,
"rwsrwxr-x"
)
)
\ No newline at end of file
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