mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fixing method_exists() use for php4, as method_exists cannot be used with class/method names in php4.
This commit is contained in:
parent
036d7e6e13
commit
547aa76c92
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue