summaryrefslogtreecommitdiff
path: root/lib/floIcon.php
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-06-27 11:57:49 -0400
committerjustauser <[email protected]>2013-06-27 11:57:49 -0400
commit7171f32dc5ace4f36e1e70605ae96ebdbdf25c4f (patch)
treee998d4fca34cebe801c982d1d7bf8932adbf218a /lib/floIcon.php
parent891e36f57e2e3955a4f13019e8fdc58fce826434 (diff)
parentfac096405338e0f46fa248320318436d862678fc (diff)
Merge remote-tracking branch 'origin' into hookhead
Conflicts: classes/feeds.php fix for merging up to the origin
Diffstat (limited to 'lib/floIcon.php')
-rw-r--r--lib/floIcon.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/floIcon.php b/lib/floIcon.php
new file mode 100644
index 000000000..11a102b50
--- /dev/null
+++ b/lib/floIcon.php
@@ -0,0 +1,20 @@
+<?php
+// 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);
+ }
+}
+?>