Skip to content
This repository
Browse code

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

Regression from d24b586
  • Loading branch information...
commit 414c006c8edd67d9cfc6f639de6bd6d88d6fecbb 1 parent 26c449d
Ingo Schommer authored November 27, 2012

Showing 1 changed file with 14 additions and 1 deletion. Show diff stats Hide diff stats

  1. 15  filesystem/GD.php
15  filesystem/GD.php
@@ -459,4 +459,17 @@ public function writeTo($filename) {
459 459
 	}
460 460
 	
461 461
 }
462  
-class_alias("GDBackend", "GD");
  462
+
  463
+/**
  464
+ * Backwards compatibility
  465
+ */
  466
+class GD extends GDBackend {
  467
+	public static function set_default_quality($quality) {
  468
+		Deprecation::notice(
  469
+			'3.1', 
  470
+			'GDBackend::set_default_quality instead',
  471
+			Deprecation::SCOPE_CLASS
  472
+		);
  473
+		GDBackend::set_default_quality($quality);
  474
+	}	
  475
+}

0 notes on commit 414c006

Please sign in to comment.
Something went wrong with that request. Please try again.