Skip to content
Permalink
Browse files

Fixing PaginatorHelperTest to be compatible with PHPUnit

  • Loading branch information...
lorenzo committed May 9, 2010
1 parent 1e01e21 commit 765de657e6caba1dfe9b9c5fdab5fd2e7df58027
Showing with 3 additions and 2 deletions.
  1. +3 −2 cake/libs/view/helpers/paginator.php
@@ -91,8 +91,9 @@ function __construct($config = array()) {
$ajaxProvider = isset($config['ajax']) ? $config['ajax'] : 'Js';
$this->helpers[] = $ajaxProvider;
$this->_ajaxHelperClass = $ajaxProvider;
App::import('Helper', $ajaxProvider);
if (!class_exists($ajaxProvider . 'Helper')) {
App::import('Helper', $ajaxProvider);
}
$classname = $ajaxProvider . 'Helper';
if (!method_exists($classname, 'link')) {
throw new Exception(sprintf(

0 comments on commit 765de65

Please sign in to comment.
You can’t perform that action at this time.