Skip to content
Snippets Groups Projects
Commit 8e5820e4 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix user-to-user download function

The JS file_area.user_dir is an object (not documented in jsobjs.html!) and
bbs.list_file_info() method expects the directory number (not object) as the
first argument. Reported by Jas Hud.
parent 9b28769f
No related branches found
No related tags found
No related merge requests found
......@@ -540,7 +540,7 @@ function download_user_files()
if(file_area.user_dir == undefined)
console.print(bbs.text(bbs.text.NoUserDir));
else {
if(!bbs.list_file_info(file_area.user_dir, FI_USERXFER))
if(!bbs.list_file_info(file_area.user_dir.number, FI_USERXFER))
console.print(bbs.text(bbs.text.NoFilesForYou));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment