mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
Fix deprecated use of has_extension
This commit is contained in:
parent
d289016bc3
commit
cc1a5824f2
@ -437,7 +437,7 @@ abstract class Object {
|
||||
if(func_num_args() > 1) {
|
||||
Deprecation::notice('3.1.0', "Object::has_extension() deprecated. Call has_extension() on the class");
|
||||
$class = func_get_arg(0);
|
||||
$extension = func_get_arg(1);
|
||||
$requiredExtension = func_get_arg(1);
|
||||
}
|
||||
|
||||
$requiredExtension = strtolower($requiredExtension);
|
||||
|
Loading…
Reference in New Issue
Block a user