mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 11:01:04 +00:00
Merge remote-tracking branch 'origin/master' into 2.4
This commit is contained in:
commit
18460b2d79
6 changed files with 14 additions and 6 deletions
|
@ -46,6 +46,7 @@
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
"ext-tokenizer": "*",
|
"ext-tokenizer": "*",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
|
"ext-tidy": "*",
|
||||||
"symfony/symfony": "3.4.*",
|
"symfony/symfony": "3.4.*",
|
||||||
"doctrine/orm": "^2.6",
|
"doctrine/orm": "^2.6",
|
||||||
"doctrine/doctrine-bundle": "^1.9",
|
"doctrine/doctrine-bundle": "^1.9",
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
{% if craue_setting('export_epub') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'epub' }) }}" title="Generate ePub file">EPUB</a></li>{% endif %}
|
{% if craue_setting('export_epub') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'epub' }) }}" title="Generate ePub file">EPUB</a></li>{% endif %}
|
||||||
{% if craue_setting('export_mobi') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'mobi' }) }}" title="Generate Mobi file">MOBI</a></li>{% endif %}
|
{% if craue_setting('export_mobi') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'mobi' }) }}" title="Generate Mobi file">MOBI</a></li>{% endif %}
|
||||||
{% if craue_setting('export_pdf') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'pdf' }) }}" title="Generate PDF file">PDF</a></li>{% endif %}
|
{% if craue_setting('export_pdf') %}<li><a href="{{ path('export_entry', { 'id': entry.id, 'format': 'pdf' }) }}" title="Generate PDF file">PDF</a></li>{% endif %}
|
||||||
<li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.label'|trans }}" class="tool bad-display icon icon-delete"><span>{{ 'entry.view.left_menu.problem.label'|trans }}</span></a></li>
|
<li><a href="mailto:siteconfig@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.label'|trans }}" class="tool bad-display icon icon-delete"><span>{{ 'entry.view.left_menu.problem.label'|trans }}</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,7 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="bold">
|
<li class="bold">
|
||||||
<a class="waves-effect collapsible-header" href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.description'|trans }}">
|
<a class="waves-effect collapsible-header" href="mailto:siteconfig@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{{ 'entry.view.left_menu.problem.description'|trans }}">
|
||||||
<i class="material-icons small">error</i>
|
<i class="material-icons small">error</i>
|
||||||
<span>{{ 'entry.view.left_menu.problem.label'|trans }}</span>
|
<span>{{ 'entry.view.left_menu.problem.label'|trans }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -206,10 +206,10 @@ class PocketImport extends AbstractImport
|
||||||
$this->fetchContent($entry, $url);
|
$this->fetchContent($entry, $url);
|
||||||
|
|
||||||
// 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
|
// 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
|
||||||
$entry->updateArchived(1 === $importedEntry['status'] || $this->markAsRead);
|
$entry->updateArchived(1 === (int) $importedEntry['status'] || $this->markAsRead);
|
||||||
|
|
||||||
// 0 or 1 - 1 If the item is starred
|
// 0 or 1 - 1 if the item is starred
|
||||||
$entry->setStarred(1 === $importedEntry['favorite']);
|
$entry->setStarred(1 === (int) $importedEntry['favorite']);
|
||||||
|
|
||||||
$title = 'Untitled';
|
$title = 'Untitled';
|
||||||
if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) {
|
if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) {
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
<table cellpadding="0" cellspacing="0" border="0" align="center" id="card">
|
<table cellpadding="0" cellspacing="0" border="0" align="center" id="card">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding: 20px;" width="96px" valign="top"><img class="image_fix" src="{{ absolute_url(asset('wallassets/themes/_global/img/logo-other_themes.png')) }}" alt="logo" title="{{ wallabag_url }}" style="width: 96px; height: 96px;" /></td>
|
<td style="padding: 20px;" width="96px" valign="top"><img class="image_fix" src="{{ absolute_url(asset('wallassets/themes/_global/img/logo-square.svg')) }}" alt="logo" title="{{ wallabag_url }}" style="width: 96px; height: 96px;" /></td>
|
||||||
<td style="padding: 20px; padding-left: 0;" valign="top" id="cell_desc">
|
<td style="padding: 20px; padding-left: 0;" valign="top" id="cell_desc">
|
||||||
<h1>wallabag</h1>
|
<h1>wallabag</h1>
|
||||||
<h5>{{ "auth_code.on"|trans({}, 'wallabag_user') }} {{ wallabag_url }}</h5>
|
<h5>{{ "auth_code.on"|trans({}, 'wallabag_user') }} {{ wallabag_url }}</h5>
|
||||||
|
|
|
@ -226,6 +226,13 @@ class PocketImportTest extends TestCase
|
||||||
->method('getRepository')
|
->method('getRepository')
|
||||||
->willReturn($entryRepo);
|
->willReturn($entryRepo);
|
||||||
|
|
||||||
|
$this->em
|
||||||
|
->expects($this->any())
|
||||||
|
->method('persist')
|
||||||
|
->with($this->callback(function ($persistedEntry) {
|
||||||
|
return $persistedEntry->isArchived() && $persistedEntry->isStarred();
|
||||||
|
}));
|
||||||
|
|
||||||
$entry = new Entry($this->user);
|
$entry = new Entry($this->user);
|
||||||
|
|
||||||
$this->contentProxy
|
$this->contentProxy
|
||||||
|
|
Loading…
Reference in a new issue