mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-12 05:43:16 +00:00
Fixed problem with recipe directory handling
This commit is contained in:
parent
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);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user