Skip to content
Snippets Groups Projects
Commit b57e41ef authored by Kayz's avatar Kayz
Browse files

default_path

parent f8b3f7ab
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!101Fix text_sec issues on add file
......@@ -132,14 +132,14 @@ while(bbs.online) {
if(!path || console.aborted)
break;
if(!file_exists(path)) {
var path_textarea = backslash(txtsec_data(usrsec[cursec])) + path;
if (!file_exists(path_textarea)) {
var default_path = backslash(txtsec_data(usrsec[cursec])) + path;
if (!file_exists(default_path)) {
console.print(bbs.text(FileNotFound));
break;
} else {
// only change the path if the file was found, otherwise
// leave it alone so they can correct it
path = path_textarea;
path = default_path;
}
}
console.printfile(path);
......
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