Fix deprecated use of has_extension

This commit is contained in:
Robert Curry 2013-02-07 14:30:46 +13:00
parent d289016bc3
commit cc1a5824f2

View File

@ -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);