Permalink
Browse files

Fixing method_exists() use for php4, as method_exists cannot be used …

…with class/method names in php4.
  • Loading branch information...
1 parent 036d7e6 commit 547aa76c92bce8dea0979010e177a0d8fd8434f2 @markstory markstory committed Jan 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/view/helpers/paginator.php
@@ -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

0 comments on commit 547aa76

Please sign in to comment.