Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Add count of entries (unfiltered). Fixes symphonycms#2129.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-e authored and nitriques committed Feb 19, 2015
1 parent 2c1b7bc commit bb816bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion symphony/content/content.publish.php
Expand Up @@ -495,7 +495,10 @@ public function __viewIndex()

// Flag filtering
if (isset($_REQUEST['filter'])) {
$filter_stats = new XMLElement('p', '<span>– ' . __('filtered (%d of %d)', array($entries['total-entries'], EntryManager::fetchCount($section_id))) . '</span>', array('class' => 'inactive'));
$filter_stats = new XMLElement('p', '<span>– ' . __('%d of %d entries (filtered)', array($entries['total-entries'], EntryManager::fetchCount($section_id))) . '</span>', array('class' => 'inactive'));
$this->Breadcrumbs->appendChild($filter_stats);
} else {
$filter_stats = new XMLElement('p', '<span>– ' . __('%d entries', array($entries['total-entries'])) . '</span>', array('class' => 'inactive'));
$this->Breadcrumbs->appendChild($filter_stats);
}

Expand Down

0 comments on commit bb816bb

Please sign in to comment.