Skip to content
This repository
Browse code

API-CHANGE: adding a default option of null to the $args argument in …

…DataExtension::add_to_class. The args argument isn't used anywhere in the class and adding a third argument to every call to this function is tedious.
  • Loading branch information...
commit e76913f811c70334f392810e40720588d802ba73 1 parent 6c697e5
Julian Seidenberg authored April 05, 2012

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

  1. 2  model/DataExtension.php
2  model/DataExtension.php
@@ -32,7 +32,7 @@
32 32
 	);
33 33
 
34 34
 
35  
-	static function add_to_class($class, $extensionClass, $args) {
  35
+	static function add_to_class($class, $extensionClass, $args = null) {
36 36
 		if(method_exists($class, 'extraDBFields')) {
37 37
 			$extraStaticsMethod = 'extraDBFields';
38 38
 		} else {

0 notes on commit e76913f

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