summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-09-04 20:30:15 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-09-04 20:30:15 +0200
commit657b1ffe278c2bbd1c23ae906786810ce9c609f4 (patch)
tree3cb9fe51af0325b997a00090fce73bbe4f77f2f9 /app
parent228e89dbe3e7dce312b285d548ca20133e60e2bc (diff)
Bug HTML stats
Categories containing a space were not displayed properly https://github.com/marienfressinaud/FreshRSS/issues/547
Diffstat (limited to 'app')
-rw-r--r--app/views/stats/repartition.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml
index 2331db78c..d9dc4c89d 100644
--- a/app/views/stats/repartition.phtml
+++ b/app/views/stats/repartition.phtml
@@ -10,12 +10,12 @@
<?php foreach ($this->categories as $category) {
$feeds = $category->feeds();
if (!empty($feeds)) {
- echo '<optgroup label=', $category->name(), '>';
+ 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="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>';