Skip to content

Commit

Permalink
Changed default resize mode to crop
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Nov 20, 2014
1 parent 4706cb3 commit 8a98952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MadeYourDay/Contao/Element/CustomElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ public function getImageObject($id, $size = null, $maxSize = null)
$size = deserialize($size);
}
if (!is_array($size)) {
$size = array(0, 0, 'center_center');
$size = array();
}
$size[0] = isset($size[0]) ? $size[0] : 0;
$size[1] = isset($size[1]) ? $size[1] : 0;
$size[2] = isset($size[2]) ? $size[2] : 'center_center';
$size[2] = isset($size[2]) ? $size[2] : 'crop';

$image = array(
'id' => $image->id,
Expand Down

0 comments on commit 8a98952

Please sign in to comment.