1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +00:00

replace floIcon with jimIcon from https://github.com/jimparis/jimIcon

This commit is contained in:
Andrew Dolgov
2013-06-26 08:37:07 +04:00
parent afa1a260d0
commit ba2463069f
3 changed files with 290 additions and 1 deletions

20
lib/floIcon.php Normal file
View File

@@ -0,0 +1,20 @@
<?
// Compatibility shim for hooking up jimIcon to Tiny Tiny RSS.
require_once "jimIcon.php";
class floIconIcon {
function getImageResource() {
return $this->img;
}
}
class floIcon {
function readICO($file) {
$jim = new jimIcon();
$icon = new floIconIcon();
$icon->img = $jim->fromiconstring(file_get_contents($file));
$this->images = array($icon);
}
}
?>