Skip to content

Commit

Permalink
Ensuring the javascript provider class is loaded before checking meth…
Browse files Browse the repository at this point in the history
…od on it
  • Loading branch information
lorenzo committed Jan 7, 2012
1 parent de7921a commit fa99b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/PaginatorHelper.php
Expand Up @@ -93,7 +93,7 @@ public function __construct(View $View, $settings = array()) {
$this->_ajaxHelperClass = $ajaxProvider;
App::uses($ajaxProvider . 'Helper', 'View/Helper');
$classname = $ajaxProvider . 'Helper';
if (!method_exists($classname, 'link')) {
if (!class_exists($classname) || !method_exists($classname, 'link')) {
throw new CakeException(sprintf(
__d('cake_dev', '%s does not implement a link() method, it is incompatible with PaginatorHelper'), $classname
));
Expand Down

0 comments on commit fa99b58

Please sign in to comment.