aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche')
-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;