mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-04 16:10:03 +00:00
Add some comments
This commit is contained in:
parent
a2c1b94e82
commit
106bdbcd0a
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ class ContentProxy
|
||||||
// do we have to fetch the content or the provided one is ok?
|
// do we have to fetch the content or the provided one is ok?
|
||||||
if (empty($content) || false === $this->validateContent($content)) {
|
if (empty($content) || false === $this->validateContent($content)) {
|
||||||
$fetchedContent = $this->graby->fetchContent($url);
|
$fetchedContent = $this->graby->fetchContent($url);
|
||||||
|
|
||||||
|
// when content is imported, we have information in $content
|
||||||
|
// in case fetching content goes bad, we'll keep the imported information instead of overriding them
|
||||||
if (empty($content) || $fetchedContent['html'] !== $this->fetchingErrorMessage) {
|
if (empty($content) || $fetchedContent['html'] !== $this->fetchingErrorMessage) {
|
||||||
$content = $fetchedContent;
|
$content = $fetchedContent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue