mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +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) {
|
if(func_num_args() > 1) {
|
||||||
Deprecation::notice('3.1.0', "Object::has_extension() deprecated. Call has_extension() on the class");
|
Deprecation::notice('3.1.0', "Object::has_extension() deprecated. Call has_extension() on the class");
|
||||||
$class = func_get_arg(0);
|
$class = func_get_arg(0);
|
||||||
$extension = func_get_arg(1);
|
$requiredExtension = func_get_arg(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$requiredExtension = strtolower($requiredExtension);
|
$requiredExtension = strtolower($requiredExtension);
|
||||||
|
Loading…
Reference in New Issue
Block a user