mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Add logbook dir to custom form
SVN revision: 2325
This commit is contained in:
parent
daa7dd6161
commit
40a00e5adf
@ -9196,6 +9196,13 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
|
|
||||||
/* check for custom form */
|
/* check for custom form */
|
||||||
if (getcfg(lbs->name, "Custom form", str, sizeof(str))) {
|
if (getcfg(lbs->name, "Custom form", str, sizeof(str))) {
|
||||||
|
/* check if file starts with an absolute directory */
|
||||||
|
if (str[0] == DIR_SEPARATOR || str[1] == ':')
|
||||||
|
strcpy(file_name, str);
|
||||||
|
else {
|
||||||
|
strlcpy(file_name, logbook_dir, sizeof(file_name));
|
||||||
|
strlcat(file_name, str, sizeof(file_name));
|
||||||
|
}
|
||||||
send_file_direct(str);
|
send_file_direct(str);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user