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:
Simon Welsh 2012-11-27 02:26:36 -08:00
commit 68894c1e35

View File

@ -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);
}
}