]> git.wh0rd.org - tt-rss.git/blobdiff - include/colors.php
add a placeholder where floicon might be added if needed, still keep it
[tt-rss.git] / include / colors.php
index 41bf7b819f023ab9f1471165cada6c31def37cd0..91eaa2dc2c2dd4a1e69ce4097d94234f02a2b1ba 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
-require_once "lib/floIcon.php";
+if (file_exists("lib/floIcon.php")) {
+       require_once "lib/floIcon.php";
+}
 
 function _resolve_htmlcolor($color) {
        $htmlcolors = array ("aliceblue" => "#f0f8ff",
@@ -286,7 +288,8 @@ function hsl2rgb($arr) {
 
                $size = @getimagesize($imageFile);
 
-               if (!defined('_DISABLE_FLOICON') && strtolower($size['mime']) == 'image/vnd.microsoft.icon') {
+               if (strtolower($size['mime']) == 'image/vnd.microsoft.icon' && class_exists("floIcon")) {
+
                        $ico = new floIcon();
                        @$ico->readICO($imageFile);