diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-12-04 11:27:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-04 11:27:49 +0100 |
commit | 106bdbcd0ab6c75937188dfce243167b878e9a8c (patch) | |
tree | f6e3a5e1c27279c09df0904727066ea1b967a7b3 | |
parent | a2c1b94e8200260c1d6172ec2c36ef9a0e956d02 (diff) | |
download | wallabag-106bdbcd0ab6c75937188dfce243167b878e9a8c.tar.gz wallabag-106bdbcd0ab6c75937188dfce243167b878e9a8c.tar.zst wallabag-106bdbcd0ab6c75937188dfce243167b878e9a8c.zip |
Add some comments
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 2690edbe..0130bd2b 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -51,6 +51,9 @@ class ContentProxy | |||
51 | // do we have to fetch the content or the provided one is ok? | 51 | // do we have to fetch the content or the provided one is ok? |
52 | if (empty($content) || false === $this->validateContent($content)) { | 52 | if (empty($content) || false === $this->validateContent($content)) { |
53 | $fetchedContent = $this->graby->fetchContent($url); | 53 | $fetchedContent = $this->graby->fetchContent($url); |
54 | |||
55 | // when content is imported, we have information in $content | ||
56 | // in case fetching content goes bad, we'll keep the imported information instead of overriding them | ||
54 | if (empty($content) || $fetchedContent['html'] !== $this->fetchingErrorMessage) { | 57 | if (empty($content) || $fetchedContent['html'] !== $this->fetchingErrorMessage) { |
55 | $content = $fetchedContent; | 58 | $content = $fetchedContent; |
56 | } | 59 | } |