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) { ...@@ -132,14 +132,14 @@ while(bbs.online) {
if(!path || console.aborted) if(!path || console.aborted)
break; break;
if(!file_exists(path)) { if(!file_exists(path)) {
var path_textarea = backslash(txtsec_data(usrsec[cursec])) + path; var default_path = backslash(txtsec_data(usrsec[cursec])) + path;
if (!file_exists(path_textarea)) { if (!file_exists(default_path)) {
console.print(bbs.text(FileNotFound)); console.print(bbs.text(FileNotFound));
break; break;
} else { } else {
// only change the path if the file was found, otherwise // only change the path if the file was found, otherwise
// leave it alone so they can correct it // leave it alone so they can correct it
path = path_textarea; path = default_path;
} }
} }
console.printfile(path); console.printfile(path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment