mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-08 10:41:25 +02: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) {
|
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