summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-03-05 20:22:03 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-03-08 09:18:06 -0500
commite9eca6aff6c7e2e2349b3b6cf714e2e7eb99405e (patch)
tree8643ff4baeddb2c479e21961242726707ee05b16 /app/views
parent859290ec1f79840db031da3af10f25792e98623d (diff)
Sharing optimization
Change the storage and display of sharings to improve the time needed to generate the page. Instead of looking for a default value when displaying the sharing links, they are added during the configuration.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/helpers/view/normal_view.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml
index ff535c60a..9fd06ebae 100644
--- a/app/views/helpers/view/normal_view.phtml
+++ b/app/views/helpers/view/normal_view.phtml
@@ -138,7 +138,7 @@ if (!empty($this->entries)) {
<?php foreach ($sharing as $share) :?>
<li class="item share">
<a target="_blank" href="<?php echo FreshRSS_Share::generateUrl($this->conf->shares, $share, $item->link(), $item->title() . ' . ' . $feed->name())?>">
- <?php echo array_key_exists('name', $share) ? $share['name'] : Minz_Translate::t ($share['type']);?>
+ <?php echo Minz_Translate::t ($share['name']);?>
</a>
</li>
<?php endforeach;?>