Merge pull request #764 from chillu/pull/extrastatics-args

BUG Calling extraStatics() with args (regression from fa37c448)
This commit is contained in:
Sean Harvey 2012-09-02 14:28:55 -07:00
commit 1ce861ca96

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