mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Send image directly if no thumbnail available
SVN revision: 2473
This commit is contained in:
parent
c4ac44b9d4
commit
da3530ae80
@ -23486,6 +23486,11 @@ int get_thumb_name(const char *file_name, char *thumb_name, int size, int index)
|
||||
strlcpy(thumb_name, str, size);
|
||||
return 1;
|
||||
}
|
||||
strlcpy(str, file_name, sizeof(str));
|
||||
if (file_exist(str)) {
|
||||
strlcpy(thumb_name, str, size);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user