Fixing method_exists() use for php4, as method_exists cannot be used with class/method names in php4.

This commit is contained in:
Mark Story 2010-01-14 23:07:48 -05:00
parent 036d7e6e13
commit 547aa76c92

View file

@ -91,7 +91,7 @@ class PaginatorHelper extends AppHelper {
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