From 675bbbd1b5cbe45db1421edcef586fca6160f51f Mon Sep 17 00:00:00 2001 From: mrodzis Date: Tue, 4 Dec 2018 08:59:16 +0100 Subject: [PATCH] Fixes #26 --- modules/config.xqm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/config.xqm b/modules/config.xqm index 6f25a21..ab1c623 100644 --- a/modules/config.xqm +++ b/modules/config.xqm @@ -19,13 +19,13 @@ declare variable $config:app-root := (: strip the xmldb: part :) if (starts-with($rawPath, "xmldb:exist://")) then if (starts-with($rawPath, "xmldb:exist://embedded-eXist-server")) then - substring($rawPath, 36) + substring-after($rawPath, "xmldb:exist://embedded-eXist-server") else - substring($rawPath, 15) + substring-after($rawPath, "xmldb:exist://") else $rawPath let $path := substring-before($modulePath, "/modules") - return if (starts-with($path, "null")) then substring($path, 3) else $path; + return if (starts-with($path, "null")) then substring-after($path, "null") else $path; declare variable $config:data-root := $config:app-root || "/" || config:get("project-id"); declare variable $config:repo-descriptor := doc(concat($config:app-root, "/repo.xml"))/repo:meta; -- GitLab