Commit 57fc9e74 authored by Arnaud Daret's avatar Arnaud Daret
Browse files

fix double slash dans les URLs fournies par max.util:getProjectTOCXSL

parent 799b1ba7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -253,10 +253,10 @@ declare function max.util:getProjectMenuXSL($projectId) {
declare function max.util:getProjectTOCXSL($projectId) {

    let $xmlFormat := max.config:getXMLFormat($projectId)
    let $xsltFile := max.util:getResourceFilePath($projectId, "/ui/xsl/"|| $max.cons:TOC_XSL_FILENAME)
    let $xsltFile := max.util:getResourceFilePath($projectId, "ui/xsl/"|| $max.cons:TOC_XSL_FILENAME)
    return if(file:exists($xsltFile))
    then $xsltFile
    else max.util:getResourceFilePath($projectId, "/ui/xsl/"|| $xmlFormat || "/" || $max.cons:TOC_XSL_FILENAME)
    else max.util:getResourceFilePath($projectId, "ui/xsl/"|| $xmlFormat || "/" || $max.cons:TOC_XSL_FILENAME)
};