Commit fbc12d07 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

suppression du format xml du projet dans le chemin de surcharge (max.util:getResourceFilePath)

parent e84b6e58
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -195,7 +195,9 @@ declare function max.util:maxHome(){
    Returns resource file path from the edition folder if exists, from the max default one if not.
:)
declare function max.util:getResourceFilePath($projectId, $path){
    let $xmlFormat := max.config:getXMLFormat($projectId)
    let $overPath := if(contains($path,'core/')) then replace($path,'core/','') else $path
    let $overPath := if(contains($path,$xmlFormat||'/')) then replace($path,$xmlFormat||'/','') else $path
    let $editionFilePath := max.util:maxHome()  || "editions/" || $projectId || "/" || $overPath
    return
        if(file:exists($editionFilePath))