Skip to content

Commit

Permalink
Merge pull request #1165 from robert-h-curry/has_extension-deprecatio…
Browse files Browse the repository at this point in the history
…n-fix

Fix deprecated use of has_extension
  • Loading branch information
halkyon committed Feb 7, 2013
2 parents d289016 + cc1a582 commit 3a97b62
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 3a97b62

Please sign in to comment.