aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Poche.class.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-12 20:05:51 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-12 20:05:51 +0100
commit68268c01995d2136e4c04c4e8c650e7d0a4eaca2 (patch)
tree20dcbe7f9238c088dbf188ae997e81f38b2bb266 /inc/poche/Poche.class.php
parent5966d2c2d3f30ab7b4fdbaf3bf3176532118c0a1 (diff)
parent58f6269f36ae719edcc79139ef5e808de12d4a8e (diff)
downloadwallabag-68268c01995d2136e4c04c4e8c650e7d0a4eaca2.tar.gz
wallabag-68268c01995d2136e4c04c4e8c650e7d0a4eaca2.tar.zst
wallabag-68268c01995d2136e4c04c4e8c650e7d0a4eaca2.zip
Merge branch 'dev' of https://github.com/wallabag/wallabag into dev
Diffstat (limited to 'inc/poche/Poche.class.php')
-rw-r--r--inc/poche/Poche.class.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 78031984..9345d1c1 100644
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -371,7 +371,7 @@ class Poche
371 { 371 {
372 case 'add': 372 case 'add':
373 $content = $this->getPageContent($url); 373 $content = $this->getPageContent($url);
374 $title = $content['rss']['channel']['item']['title']; 374 $title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : _('Untitled');
375 $body = $content['rss']['channel']['item']['description']; 375 $body = $content['rss']['channel']['item']['description'];
376 376
377 if ($this->store->add($url->getUrl(), $title, $body, $this->user->getId())) { 377 if ($this->store->add($url->getUrl(), $title, $body, $this->user->getId())) {
@@ -561,7 +561,8 @@ class Poche
561 561
562 if (count($entries) > 0) { 562 if (count($entries) > 0) {
563 $this->pagination->set_total(count($entries)); 563 $this->pagination->set_total(count($entries));
564 $page_links = $this->pagination->page_links('?view=' . $view . '&sort=' . $_SESSION['sort'] . '&'); 564 $page_links = str_replace(array('previous', 'next'), array(_('previous'), _('next')),
565 $this->pagination->page_links('?view=' . $view . '&sort=' . $_SESSION['sort'] . '&'));
565 $datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit()); 566 $datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit());
566 $tpl_vars['entries'] = $datas; 567 $tpl_vars['entries'] = $datas;
567 $tpl_vars['page_links'] = $page_links; 568 $tpl_vars['page_links'] = $page_links;