Commit 682bc904 authored by Carsten  Rose's avatar Carsten Rose
Browse files

thumbnail: empty path filename no ignored. Instead of throwing an exception,...

thumbnail: empty path filename no ignored. Instead of throwing an exception, it returns just nothing. This is the same behaviour as building links - no definition means 'no link', and not 'error'.
parent 65cf1fd3
Pipeline #1037 passed with stage
in 1 minute and 42 seconds
......@@ -70,7 +70,7 @@ class Thumbnail {
$control[TOKEN_SIP] = Token::checkForEmptyValue(TOKEN_SIP, $control[TOKEN_SIP]);
if (empty($control[TOKEN_THUMBNAIL])) {
throw new UserReportException("Thumbnail: source file not specified", ERROR_MISSING_REQUIRED_PARAMETER);
return '';
}
if (empty($control[TOKEN_THUMBNAIL_DIMENSION])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment