diff options
| author | 2017-05-07 17:07:31 +0200 | |
|---|---|---|
| committer | 2017-05-07 17:07:31 +0200 | |
| commit | ff3f639bcd256c94eb8a7b6828494a4982f66867 (patch) | |
| tree | d0d8c9f5a0f2e3c1b2ff86bab86366388fadcfea | |
| parent | 1c2235ec90141448304b1537112986175d2f45ff (diff) | |
| parent | 1a59bf8e52296563ee11277837249010a37a2e64 (diff) | |
Merge pull request #1522 from Alkarex/download-other-mimes
Download icon 💾 for other MIME types
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | app/Models/Feed.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 13b980e9d..bfd368be1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ * Fix UI lowest subscription popup hidden [#1479](https://github.com/FreshRSS/FreshRSS/issues/1479) * Fix update system via ZIP archive [#1498](https://github.com/FreshRSS/FreshRSS/pull/1498) * Work around for IE / Edge bug in username pattern in version 1.6.3 [#1511](https://github.com/FreshRSS/FreshRSS/issues/1511) +* UI + * Download icon 💾 for other MIME types (e.g. `application/*`) [#1522](https://github.com/FreshRSS/FreshRSS/pull/1522) * I18n * Improve English [#1465](https://github.com/FreshRSS/FreshRSS/pull/1465) * Misc. diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 1bc6e48e8..f6059e9de 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -328,7 +328,7 @@ class FreshRSS_Feed extends Minz_Model { } elseif (strpos($mime, 'video/') === 0) { $content .= '<p class="enclosure"><video preload="none" src="' . $elink . '" controls="controls"></video> <a download="" href="' . $elink . '">💾</a></p>'; } else { - unset($elinks[$elink]); + $content .= '<p class="enclosure"><a download="" href="' . $elink . '">💾</a></p>'; } } } |
