From eeea7ce910c8b338d6b8b7afef9da70147d7d1bb Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 21 May 2013 23:26:17 +0000 Subject: [PATCH] fix fund error --- application/default/controllers/AuthorController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index d7ac36ff..fe272e3c 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -3804,6 +3804,7 @@ class AuthorController extends Zend_Controller_Action $submit = $this->_getParam('submit'); include_once("data/Fund.php"); + include_once("helper/view.php"); $fund = new Fund($this->db); $auth = Zend_Auth::getInstance(); @@ -3821,13 +3822,13 @@ class AuthorController extends Zend_Controller_Action if(empty($uuid)) { $rows = $fund->fetch(0,true,$uid); - $fund->addPaginator($rows,$this->view,$this->_request); + view::addPaginator($rows,$this->view,$this->_request); }else{ include('data/Metadata.php'); $md = new Metadata($this->db); $this->view->md = $md->view($uuid); $rows = $fund->fetch($uuid); - $fund->addPaginator($rows,$this->view,$this->_request); + view::addPaginator($rows,$this->view,$this->_request); } return true; }