Permalink
Browse files

BUG Restore GD class to avoid breaking GD::set_default_quality() calls

Regression from d24b586
  • Loading branch information...
1 parent 26c449d commit 414c006c8edd67d9cfc6f639de6bd6d88d6fecbb @chillu chillu committed Nov 27, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 filesystem/GD.php
View
@@ -459,4 +459,17 @@ public function writeTo($filename) {
}
}
-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);
+ }
+}

0 comments on commit 414c006

Please sign in to comment.