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

This commit is contained in:
Ingo Schommer 2012-09-02 13:55:35 +02:00
parent d24ea5ec97
commit fb6efb9d21

View File

@ -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);