mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Calling extraStatics() with args (regression from fa37c448)
This commit is contained in:
parent
d24ea5ec97
commit
fb6efb9d21
@ -38,7 +38,7 @@ abstract class DataExtension extends Extension {
|
|||||||
$extraStaticsMethod = 'extraStatics';
|
$extraStaticsMethod = 'extraStatics';
|
||||||
}
|
}
|
||||||
|
|
||||||
$statics = Injector::inst()->get($extension, true, $args)->$extraStaticsMethod();
|
$statics = Injector::inst()->get($extension, true, $args)->$extraStaticsMethod($class, $extension);
|
||||||
|
|
||||||
if ($statics) {
|
if ($statics) {
|
||||||
Deprecation::notice('3.1.0', "$extraStaticsMethod deprecated. Just define statics on your extension, or use get_extra_config", Deprecation::SCOPE_GLOBAL);
|
Deprecation::notice('3.1.0', "$extraStaticsMethod deprecated. Just define statics on your extension, or use get_extra_config", Deprecation::SCOPE_GLOBAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user