Skip to content

Commit

Permalink
Fix deprecated use of has_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Curry committed Feb 7, 2013
1 parent d289016 commit cc1a582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Object.php
Expand Up @@ -437,7 +437,7 @@ public static function has_extension($requiredExtension) {
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);
Expand Down

0 comments on commit cc1a582

Please sign in to comment.