From fb6efb9d212da1ad05f77f03ac8a0bab726ebc18 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 2 Sep 2012 13:55:35 +0200 Subject: [PATCH] BUG Calling extraStatics() with args (regression from fa37c448) --- model/DataExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/DataExtension.php b/model/DataExtension.php index d975f7db2..06cf8b9b4 100644 --- a/model/DataExtension.php +++ b/model/DataExtension.php @@ -38,7 +38,7 @@ abstract class DataExtension extends Extension { $extraStaticsMethod = 'extraStatics'; } - $statics = Injector::inst()->get($extension, true, $args)->$extraStaticsMethod(); + $statics = Injector::inst()->get($extension, true, $args)->$extraStaticsMethod($class, $extension); if ($statics) { Deprecation::notice('3.1.0', "$extraStaticsMethod deprecated. Just define statics on your extension, or use get_extra_config", Deprecation::SCOPE_GLOBAL);