forked from wallabag/wallabag
Merge branch 'dev' of https://github.com/wallabag/wallabag into dev
This commit is contained in:
2
inc/.htaccess
Normal file
2
inc/.htaccess
Normal file
@ -0,0 +1,2 @@
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
@ -371,7 +371,7 @@ class Poche
|
||||
{
|
||||
case 'add':
|
||||
$content = $this->getPageContent($url);
|
||||
$title = $content['rss']['channel']['item']['title'];
|
||||
$title = ($content['rss']['channel']['item']['title'] != '') ? $content['rss']['channel']['item']['title'] : _('Untitled');
|
||||
$body = $content['rss']['channel']['item']['description'];
|
||||
|
||||
if ($this->store->add($url->getUrl(), $title, $body, $this->user->getId())) {
|
||||
@ -561,7 +561,8 @@ class Poche
|
||||
|
||||
if (count($entries) > 0) {
|
||||
$this->pagination->set_total(count($entries));
|
||||
$page_links = $this->pagination->page_links('?view=' . $view . '&sort=' . $_SESSION['sort'] . '&');
|
||||
$page_links = str_replace(array('previous', 'next'), array(_('previous'), _('next')),
|
||||
$this->pagination->page_links('?view=' . $view . '&sort=' . $_SESSION['sort'] . '&'));
|
||||
$datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit());
|
||||
$tpl_vars['entries'] = $datas;
|
||||
$tpl_vars['page_links'] = $page_links;
|
||||
|
||||
Reference in New Issue
Block a user