mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2122 from g4b0/1752-image-manipulation-parameter-regression
REGRESSION: fixed background color for PaddedImage
This commit is contained in:
commit
b7a00eea78
@ -350,7 +350,7 @@ class Image extends File {
|
||||
* @param integer $height The height to size to
|
||||
* @return Image
|
||||
*/
|
||||
public function PaddedImage($width, $height, $backgroundColor=null) {
|
||||
public function PaddedImage($width, $height, $backgroundColor='FFFFFF') {
|
||||
return $this->isSize($width, $height)
|
||||
? $this
|
||||
: $this->getFormattedImage('PaddedImage', $width, $height, $backgroundColor);
|
||||
|
Loading…
Reference in New Issue
Block a user