A free, self-hostable news aggregator…
Syntax 581
Alexandre Alapetiteea99ac125908
diff --git a/app/Controllers/statsController.php b/app/Controllers/statsController.phpindex 934b076a5..98f46f0d2 100644--- a/app/Controllers/statsController.php+++ b/app/Controllers/statsController.php@@ -62,7 +62,7 @@ class FreshRSS_stats_Controller extends Minz_ActionController {$feedDAO = FreshRSS_Factory::createFeedDao();Minz_View::appendScript(Minz_Url::display('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js')));$id = Minz_Request::param ('id', null);- $this->view->categories = $categoryDAO->listCategories ();+ $this->view->categories = $categoryDAO->listCategories();$this->view->feed = $feedDAO->searchById($id);$this->view->days = $statsDAO->getDays();$this->view->months = $statsDAO->getMonths();diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtmlindex 3dc319731..1f920a7ae 100644--- a/app/views/stats/repartition.phtml+++ b/app/views/stats/repartition.phtml@@ -6,16 +6,16 @@<h1><?php echo _t('stats_repartition'); ?></h1><select id="feed_select">- <option data-url="<?php echo _url ('stats', 'repartition')?>"></option>+ <option data-url="<?php echo _url('stats', 'repartition')?>"></option><?php foreach ($this->categories as $category) {- $feeds = $category->feeds ();- if (!empty ($feeds)) {+ $feeds = $category->feeds();+ if (!empty($feeds)) {echo '<optgroup label=', $category->name(), '>';foreach ($feeds as $feed) {if ($this->feed && $feed->id() == $this->feed->id()){- echo '<option value ="', $feed->id(), '" selected data-url="', _url ('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';+ echo '<option value ="', $feed->id(), '" selected data-url="', _url('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';} else {- echo '<option value ="', $feed->id(), '" data-url="', _url ('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';+ echo '<option value ="', $feed->id(), '" data-url="', _url('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';}}echo '</optgroup>';