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
Branches
Tags
No related merge requests found
...@@ -540,7 +540,7 @@ function download_user_files() ...@@ -540,7 +540,7 @@ function download_user_files()
if(file_area.user_dir == undefined) if(file_area.user_dir == undefined)
console.print(bbs.text(bbs.text.NoUserDir)); console.print(bbs.text(bbs.text.NoUserDir));
else { 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)); console.print(bbs.text(bbs.text.NoFilesForYou));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment