Add int cast for File::createThumb

createThumb needs a int
There are some more int cast on multiply with 1.5 in this code

Change-Id: If8356523ef89a29855dcf9bf390d16890c70f1c8
isekai
Umherirrender 5 years ago
parent cb2a686be0
commit c92bea0b44

@ -1023,7 +1023,7 @@ class TimelessTemplate extends BaseTemplate {
if ( $svg ) {
$logoData['1x'] = $file->createThumb( $logoData['width'] );
$logoData['1.5x'] = $file->createThumb( $logoData['width'] * 1.5 );
$logoData['1.5x'] = $file->createThumb( (int)( $logoData['width'] * 1.5 ) );
$logoData['2x'] = $file->createThumb( $logoData['width'] * $large );
} elseif ( $file->mustRender() ) {
$logoData['1x'] = $file->createThumb( $logoData['width'] );

Loading…
Cancel
Save