mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix cropping of space banner (#5964)
This commit is contained in:
parent
2d1e4a8912
commit
4dd5826890
@ -4,6 +4,7 @@ HumHub Changelog
|
||||
1.12.3 (Unreleased)
|
||||
-------------------
|
||||
- Fix #5928: Invalid Mailer DSN breaks whole application
|
||||
- Fix #5960: Fix cropping of space banner
|
||||
|
||||
1.12.2 (November 11, 2022)
|
||||
--------------------------
|
||||
|
@ -118,4 +118,21 @@ class CropProfileImage extends Model
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function load($data, $formName = null)
|
||||
{
|
||||
if (parent::load($data, $formName)) {
|
||||
// Make sure the params are integer formatted
|
||||
$this->cropX = intval($this->cropX);
|
||||
$this->cropY = intval($this->cropY);
|
||||
$this->cropW = intval($this->cropW);
|
||||
$this->cropH = intval($this->cropH);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user