Merge pull request #1522 from Alkarex/download-other-mimes

Download icon 💾 for other MIME types
This commit is contained in:
Alexandre Alapetite
2017-05-07 17:07:31 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -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.

View File

@@ -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>';
}
}
}