From 547aa76c92bce8dea0979010e177a0d8fd8434f2 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Thu, 14 Jan 2010 23:07:48 -0500 Subject: [PATCH] Fixing method_exists() use for php4, as method_exists cannot be used with class/method names in php4. --- cake/libs/view/helpers/paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/paginator.php b/cake/libs/view/helpers/paginator.php index dd77f3d7b..8b326efc5 100644 --- a/cake/libs/view/helpers/paginator.php +++ b/cake/libs/view/helpers/paginator.php @@ -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