mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #1165 from robert-h-curry/has_extension-deprecation-fix
Fix deprecated use of has_extension
This commit is contained in:
commit
3a97b622d1
@ -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…
x
Reference in New Issue
Block a user