chg: remove obsolete count variable

pull/1551/head
Andreas Ziegler 2016-09-21 02:06:48 +02:00
parent 7dae6c9c23
commit e137e2f4e7
1 changed files with 0 additions and 1 deletions

View File

@ -48,7 +48,6 @@ class TaxonomiesController extends AppController {
$taxonomy = $this->Taxonomy->getTaxonomy($id, array('full' => true, 'filter' => $filter));
$this->set('filter', $filter);
if (empty($taxonomy)) throw new NotFoundException('Taxonomy not found.');
$pageCount = count($taxonomy['entries']);
$customPagination = new CustomPaginationTool();
$params = $customPagination->createPaginationRules($taxonomy['entries'], $this->passedArgs, 'TaxonomyEntry');
$this->params->params['paging'] = array($this->modelClass => $params);