From: Andrew Dolgov Date: Thu, 25 Nov 2010 12:32:53 +0000 (+0300) Subject: blacklist option ENABLE_FLASH_PLAYER X-Git-Tag: 1.5.0~41 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7515cb51d15f24b4c2fce367f097b1dd69ccefa7;p=tt-rss.git blacklist option ENABLE_FLASH_PLAYER --- diff --git a/functions.php b/functions.php index 27efb2c4..d874ba3b 100644 --- a/functions.php +++ b/functions.php @@ -4454,35 +4454,14 @@ $entry = ""; - if (($ctype == __("audio/mpeg")) && (get_pref($link, "ENABLE_FLASH_PLAYER")) ) { + if ($ctype == "audio/mpeg") { $entry .= " + width=\"17\" height=\"17\" style='float : left; margin-right : 5px;'> "; } - /* - - if (substr($ctype,0,6)=="audio/" || $ctype=="application/ogg" || $ctype=="application/x-ogg") { - $entry .= " "; - if (($ctype == __("audio/mpeg")) && - (get_pref($link, "ENABLE_FLASH_PLAYER")) ) { - $entry .= "".__('Switch to Flash Player').""; - $entry .= ""; - } - } elseif (substr($ctype,0,6)=="video/") { - $entry .= ""; - } */ - - - return $entry; } diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 35935973..879ef6fc 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -16,7 +16,7 @@ $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS", "ENABLE_LABELS", "ENABLE_SEARCH_TOOLBAR", "HIDE_READ_FEEDS", "ENABLE_FEED_ICONS", "ENABLE_OFFLINE_READING", "EXTENDED_FEEDLIST", "FEEDS_SORT_BY_UNREAD", - "OPEN_LINKS_IN_NEW_WINDOW", "USER_STYLESHEET_URL"); + "OPEN_LINKS_IN_NEW_WINDOW", "USER_STYLESHEET_URL", "ENABLE_FLASH_PLAYER"); $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS", "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",