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

Fix one remaining FileBase.get_path() call that passed file-meta-object

(instead of file name), which would have issues in SBBS v3.19 for filenames
> 64 chars in length.

Also, remove extraneous calls to format().
parent f532bee9
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -431,11 +431,11 @@ function view_details(file, dircode) ...@@ -431,11 +431,11 @@ function view_details(file, dircode)
} }
var dir = file_area.dir[dircode]; var dir = file_area.dir[dircode];
var buf = []; var buf = [];
buf.push(format("Library " + file_area.lib[dir.lib_name].description)); buf.push("Library " + file_area.lib[dir.lib_name].description);
buf.push(format("Directory " + dir.description)); buf.push("Directory " + dir.description);
buf.push(format("Size " + file_size_float(base.get_size(file.name), 1, 1))); buf.push("Size " + file_size_float(base.get_size(file.name), 1, 1));
buf.push(format("Time " + system.timestr(base.get_time(file.name)))); buf.push("Time " + system.timestr(base.get_time(file.name)));
uifc.showbuf(WIN_MID|WIN_HLP, base.get_path(file), buf.concat(base.dump(file.name)).join('\n')); uifc.showbuf(WIN_MID|WIN_HLP, base.get_path(file.name), buf.concat(base.dump(file.name)).join('\n'));
base.close(); base.close();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment