mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +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);
|
strlcpy(thumb_name, str, size);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
strlcpy(str, file_name, sizeof(str));
|
||||||
|
if (file_exist(str)) {
|
||||||
|
strlcpy(thumb_name, str, size);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user