diff --git a/classes/Object.php b/classes/Object.php new file mode 100644 index 0000000..ac5feb2 --- /dev/null +++ b/classes/Object.php @@ -0,0 +1,32 @@ +$key) AND $object->$key == $value) + return TRUE; + + return FALSE; + } +} +?> diff --git a/classes/lnApp/Controller/TemplateDefault.php b/classes/lnApp/Controller/TemplateDefault.php index e5ea60f..28a6b2a 100644 --- a/classes/lnApp/Controller/TemplateDefault.php +++ b/classes/lnApp/Controller/TemplateDefault.php @@ -97,8 +97,9 @@ abstract class lnApp_Controller_TemplateDefault extends Kohana_Controller_Templa return; // For AJAX calls, we dont need to render the complete page. - if ($this->request->is_ajax()) { + if ($this->request->is_ajax() OR (Kohana::$config->load('debug')->ajax AND preg_match('/^ajax/',Request::current()->action()))) { $this->auto_render = FALSE; + return; } diff --git a/config/pagination.php b/config/pagination.php index f40ca48..598faf1 100644 --- a/config/pagination.php +++ b/config/pagination.php @@ -4,7 +4,6 @@ * OSB Configuration - Pagination Driver * * @package OSB - * @subpackage Pagination * @category Configuration * @author Deon George * @copyright (c) 2010 Open Source Billing