1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-02 10:13:16 +00:00

Fixed problem with recipe directory handling

This commit is contained in:
Jeremy Ruston 2012-01-21 16:54:31 +00:00
parent 61adbbf83a
commit 106f287a94
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}
});