aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-19 16:45:16 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-19 16:45:16 +0200
commit55843ff7a59f058e54046a3c2f85e2b476522c9d (patch)
tree896743d86f92394ba5e43d6e011fab24675a12e0 /app/Models
parent718a4cdb108126421e927f440077ee46308a8184 (diff)
Few fixes about statistics
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/StatsDAO.php1
-rw-r--r--app/Models/Themes.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/Models/StatsDAO.php b/app/Models/StatsDAO.php
index b8dc40592..40505ab3e 100644
--- a/app/Models/StatsDAO.php
+++ b/app/Models/StatsDAO.php
@@ -315,6 +315,7 @@ SQL;
SELECT MAX(f.id) as id
, MAX(f.name) AS name
, MAX(date) AS last_date
+, COUNT(*) AS nb_articles
FROM {$this->prefix}feed AS f,
{$this->prefix}entry AS e
WHERE f.id = e.id_feed
diff --git a/app/Models/Themes.php b/app/Models/Themes.php
index 538eb6554..68fc17a2b 100644
--- a/app/Models/Themes.php
+++ b/app/Models/Themes.php
@@ -96,6 +96,7 @@ class FreshRSS_Themes extends Minz_Model {
'search' => '🔍',
'share' => '♺',
'starred' => '★',
+ 'stats' => '%',
'tag' => '⚐',
'up' => '△',
'view-normal' => '☰',