mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3952 from christopherdarling/patch-1
FIX Renamed IMagickBackend to ImagicBackend
This commit is contained in:
commit
50c4c387ae
@ -42,14 +42,14 @@ class ImagickBackend extends Imagick implements Image_Backend {
|
||||
/**
|
||||
* set_default_quality
|
||||
*
|
||||
* @deprecated 3.2 Use the "IMagickBackend.default_quality" config setting instead
|
||||
* @deprecated 3.2 Use the "ImagickBackend.default_quality" config setting instead
|
||||
* @param int $quality
|
||||
* @return void
|
||||
*/
|
||||
public static function set_default_quality($quality) {
|
||||
Deprecation::notice('3.2', 'Use the "IMagickBackend.default_quality" config setting instead');
|
||||
Deprecation::notice('3.2', 'Use the "ImagickBackend.default_quality" config setting instead');
|
||||
if(is_numeric($quality) && (int) $quality >= 0 && (int) $quality <= 100) {
|
||||
config::inst()->update('IMagickBackend', 'default_quality', (int) $quality);
|
||||
Config::inst()->update('ImagickBackend', 'default_quality', (int) $quality);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user