mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #976 from chillu/pulls/gd-classalias
BUG Restore GD class to avoid breaking GD::set_default_quality() calls
This commit is contained in:
commit
68894c1e35
@ -459,4 +459,17 @@ class GDBackend extends Object implements Image_Backend {
|
||||
}
|
||||
|
||||
}
|
||||
class_alias("GDBackend", "GD");
|
||||
|
||||
/**
|
||||
* Backwards compatibility
|
||||
*/
|
||||
class GD extends GDBackend {
|
||||
public static function set_default_quality($quality) {
|
||||
Deprecation::notice(
|
||||
'3.1',
|
||||
'GDBackend::set_default_quality instead',
|
||||
Deprecation::SCOPE_CLASS
|
||||
);
|
||||
GDBackend::set_default_quality($quality);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user