diff options
| author | 2014-07-13 22:36:34 +0200 | |
|---|---|---|
| committer | 2014-07-13 22:36:34 +0200 | |
| commit | 2da4c13263affdd435ed71edaa111f05a57972a4 (patch) | |
| tree | cf9dee6a2bf708f9ba57e7d87e285dd355c87b60 /app/Controllers/indexController.php | |
| parent | 85bae5436c8cd2b3ff1b08c6ea031e6e99f0a0d6 (diff) | |
Number of unread articles as prefix in page title
https://github.com/marienfressinaud/FreshRSS/issues/536
Diffstat (limited to 'app/Controllers/indexController.php')
| -rwxr-xr-x | app/Controllers/indexController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 0469b9611..9a46bde6c 100755 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -70,11 +70,11 @@ class FreshRSS_index_Controller extends Minz_ActionController { // mise à jour des titres $this->view->rss_title = $this->view->currentName . ' | ' . Minz_View::title(); if ($this->view->nb_not_read > 0) { - Minz_View::appendTitle (' (' . formatNumber($this->view->nb_not_read) . ')'); + Minz_View::prependTitle('(' . formatNumber($this->view->nb_not_read) . ') '); } - Minz_View::prependTitle ( + Minz_View::prependTitle( + ($this->nb_not_read_cat > 0 ? '(' . formatNumber($this->nb_not_read_cat) . ') ' : '') . $this->view->currentName . - ($this->nb_not_read_cat > 0 ? ' (' . formatNumber($this->nb_not_read_cat) . ')' : '') . ' · ' ); |
