Skip to content
This repository
Browse code

BUG Calling extraStatics() with args (regression from fa37c44)

  • Loading branch information...
commit fb6efb9d212da1ad05f77f03ac8a0bab726ebc18 1 parent d24ea5e
Ingo Schommer authored September 02, 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
@@ -38,7 +38,7 @@ static function get_extra_config($class, $extension, $args) {
38 38
 			$extraStaticsMethod = 'extraStatics';
39 39
 		}
40 40
 
41  
-		$statics = Injector::inst()->get($extension, true, $args)->$extraStaticsMethod();
  41
+		$statics = Injector::inst()->get($extension, true, $args)->$extraStaticsMethod($class, $extension);
42 42
 
43 43
 		if ($statics) {
44 44
 			Deprecation::notice('3.1.0', "$extraStaticsMethod deprecated. Just define statics on your extension, or use get_extra_config", Deprecation::SCOPE_GLOBAL);

0 notes on commit fb6efb9

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