Skip to content

Commit

Permalink
Fixing method_exists() use for php4, as method_exists cannot be used …
Browse files Browse the repository at this point in the history
…with class/method names in php4.
  • Loading branch information
markstory committed Jan 15, 2010
1 parent 036d7e6 commit 547aa76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/view/helpers/paginator.php
Expand Up @@ -91,7 +91,7 @@ function __construct($config = array()) {

App::import('Helper', $ajaxProvider);
$classname = $ajaxProvider . 'Helper';
if (!method_exists($classname, 'link')) {
if (!is_callable(array($classname, 'link'))) {
$message = sprintf(
__('%s does not implement a link() method, it is incompatible with PaginatorHelper', true),
$classname
Expand Down

0 comments on commit 547aa76

Please sign in to comment.