aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-05-04 11:42:52 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-05-04 11:42:52 +0200
commitd9926005b1195c8cb4607dd45c21c7ad6c4f4c80 (patch)
tree0454b248a7e7d6f911a243fbc2dbee0a0aa5e938
parent12c697562e11bed4d2c2af0521a67219dd62ee63 (diff)
downloadwallabag-d9926005b1195c8cb4607dd45c21c7ad6c4f4c80.tar.gz
wallabag-d9926005b1195c8cb4607dd45c21c7ad6c4f4c80.tar.zst
wallabag-d9926005b1195c8cb4607dd45c21c7ad6c4f4c80.zip
Rename getEntriesByUser method to getEntriesByUserId
-rw-r--r--src/Wallabag/CoreBundle/Entity/Tag.php2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php
index f6c42f5d..b4adbbd3 100644
--- a/src/Wallabag/CoreBundle/Entity/Tag.php
+++ b/src/Wallabag/CoreBundle/Entity/Tag.php
@@ -118,7 +118,7 @@ class Tag
118 return $this->entries; 118 return $this->entries;
119 } 119 }
120 120
121 public function getEntriesByUser($userId) 121 public function getEntriesByUserId($userId)
122 { 122 {
123 $filteredEntries = new ArrayCollection(); 123 $filteredEntries = new ArrayCollection();
124 foreach ($this->entries as $entry) { 124 foreach ($this->entries as $entry) {
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig
index 4df37174..524a1d23 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Tag/tags.html.twig
@@ -9,7 +9,7 @@
9 9
10 <ul> 10 <ul>
11 {% for tag in tags %} 11 {% for tag in tags %}
12 <li id="tag-{{ tag.id|e }}">{{tag.label}} ({{ tag.getEntriesByUser(app.user.id) | length }})</li> 12 <li id="tag-{{ tag.id|e }}">{{tag.label}} ({{ tag.getEntriesByUserId(app.user.id) | length }})</li>
13 {% endfor %} 13 {% endfor %}
14 </ul> 14 </ul>
15{% endblock %} 15{% endblock %}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
index c5b516f9..d958c4b8 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Tag/tags.html.twig
@@ -9,7 +9,7 @@
9 <br /> 9 <br />
10 <ul class="row data"> 10 <ul class="row data">
11 {% for tag in tags %} 11 {% for tag in tags %}
12 <li id="tag-{{ tag.id|e }}" class="col l4 m6 s12">{{tag.label}} ({{ tag.getEntriesByUser(app.user.id) | length }})</li> 12 <li id="tag-{{ tag.id|e }}" class="col l4 m6 s12">{{tag.label}} ({{ tag.getEntriesByUserId(app.user.id) | length }})</li>
13 {% endfor %} 13 {% endfor %}
14 </ul> 14 </ul>
15{% endblock %} 15{% endblock %}