aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/indexController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-05 18:43:35 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-05 18:43:35 +0200
commitb48dc25963553e4596a5ca10a3c823e895fbfd92 (patch)
tree22b0b33a0e121b7815633f3580831966da4b69fb /app/Controllers/indexController.php
parent76b64a6907e825588a795a567e3c05c3cebcab76 (diff)
parent450df54d81ff270be7cf53e9184dc17979c97582 (diff)
Merge pull request #516 from aledeg/stats
Refactor statistics
Diffstat (limited to 'app/Controllers/indexController.php')
-rwxr-xr-xapp/Controllers/indexController.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php
index fdd29de4d..0469b9611 100755
--- a/app/Controllers/indexController.php
+++ b/app/Controllers/indexController.php
@@ -204,25 +204,6 @@ class FreshRSS_index_Controller extends Minz_ActionController {
}
}
- public function statsAction () {
- if (!$this->view->loginOk) {
- Minz_Error::error (
- 403,
- array ('error' => array (Minz_Translate::t ('access_denied')))
- );
- }
-
- Minz_View::prependTitle (Minz_Translate::t ('stats') . ' · ');
-
- $statsDAO = new FreshRSS_StatsDAO ();
- Minz_View::appendScript (Minz_Url::display ('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js')));
- $this->view->repartition = $statsDAO->calculateEntryRepartition();
- $this->view->count = ($statsDAO->calculateEntryCount());
- $this->view->feedByCategory = $statsDAO->calculateFeedByCategory();
- $this->view->entryByCategory = $statsDAO->calculateEntryByCategory();
- $this->view->topFeed = $statsDAO->calculateTopFeed();
- }
-
public function aboutAction () {
Minz_View::prependTitle (Minz_Translate::t ('about') . ' · ');
}