ttrss/lib/floIcon.php

23 lines
502 B
PHP
Raw Permalink Normal View History

2013-06-26 09:36:06 +00:00
<?php
// Compatibility shim for hooking up jimIcon to Tiny Tiny RSS.
require_once "jimIcon.php";
class floIconIcon {
function getImageResource() {
return $this->img;
}
}
class floIcon {
2021-02-23 08:05:58 +00:00
public $images = array();
function readICO($file) {
$jim = new jimIcon();
$icon = new floIconIcon();
$icon->img = $jim->fromiconstring(file_get_contents($file));
$this->images = array($icon);
}
}
?>