* Fix bug #21403,21474,21410,21414,21417,21456.
This commit is contained in:
@@ -251,7 +251,7 @@ EOF;
|
||||
/* Load pager. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
if($this->app->getViewType() == 'mhtml') $recPerPage = 10;
|
||||
$pager = pager::init($recTotal, $recPerPage, $pageID);
|
||||
$pager = new pager($recTotal, $recPerPage, $pageID);
|
||||
|
||||
if(empty($userID)) $userID = $this->app->user->id;
|
||||
$user = $this->loadModel('user')->getById($userID, 'id');
|
||||
@@ -271,8 +271,6 @@ EOF;
|
||||
if($todo->type == 'task' and isset($tasks[$todo->idvalue])) unset($todos[$key]);
|
||||
}
|
||||
|
||||
$pager->recTotal = count($todos);
|
||||
|
||||
/* Assign. */
|
||||
$this->view->todos = $todos;
|
||||
$this->view->date = (int)$type == 0 ? date(DT_DATE1) : date(DT_DATE1, strtotime($type));
|
||||
|
||||
Reference in New Issue
Block a user