aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/.htaccess2
-rw-r--r--inc/poche/Poche.class.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/inc/.htaccess b/inc/.htaccess
new file mode 100644
index 00000000..93169e4e
--- /dev/null
+++ b/inc/.htaccess
@@ -0,0 +1,2 @@
1Order deny,allow
2Deny from all
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;