restore compatibility with php < 5.5; fixes vichan-devel#86
This commit is contained in:
parent
b2d574fec3
commit
3b2f448102
@ -21,7 +21,7 @@ function postHandler($post) {
|
|||||||
$file = set_thumbnail_dimensions($post, $file);
|
$file = set_thumbnail_dimensions($post, $file);
|
||||||
$tn_path = $board['dir'] . $config['dir']['thumb'] . $file->file_id . '.jpg';
|
$tn_path = $board['dir'] . $config['dir']['thumb'] . $file->file_id . '.jpg';
|
||||||
|
|
||||||
if(empty(make_webm_thumbnail($file->file_path, $tn_path, $file->thumbwidth, $file->thumbheight))) {
|
if(false == make_webm_thumbnail($file->file_path, $tn_path, $file->thumbwidth, $file->thumbheight)) {
|
||||||
$file->thumb = $file->file_id . '.jpg';
|
$file->thumb = $file->file_id . '.jpg';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user