kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fixed problem with recipe directory handling
rodzic
61adbbf83a
commit
106f287a94
|
@ -91,7 +91,7 @@ FileRetriever.retrieveFile = function(filepath,contextPath,callback) {
|
|||
requester = httpRequest;
|
||||
} else {
|
||||
// It's a file requested in a file context
|
||||
result.path = path.resolve(path.dirname(contextPath),filepath);
|
||||
result.path = path.resolve(contextPath,filepath);
|
||||
result.extname = path.extname(result.path);
|
||||
result.basename = path.basename(result.path,result.extname);
|
||||
requester = fileRequest;
|
||||
|
|
|
@ -70,7 +70,7 @@ var Recipe = function(options,callback) {
|
|||
if(err) {
|
||||
me.callback(err);
|
||||
} else {
|
||||
me.processRecipeFile(task.recipe,data.text,data.path);
|
||||
me.processRecipeFile(task.recipe,data.text,path.dirname(data.path));
|
||||
callback(null);
|
||||
}
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue