From: Andrew Dolgov Date: Sun, 21 Nov 2010 18:50:11 +0000 (+0300) Subject: blacklist option OPEN_LINKS_IN_NEW_WINDOW, default to rewrite links to open in new... X-Git-Tag: 1.5.0~77 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c401d5c906283f91a6e86ae392eaef56d3a72fbf;p=tt-rss.git blacklist option OPEN_LINKS_IN_NEW_WINDOW, default to rewrite links to open in new windows --- diff --git a/functions.php b/functions.php index 2dc2a16d..1db2d273 100644 --- a/functions.php +++ b/functions.php @@ -3690,9 +3690,7 @@ } if (strtolower($entry->nodeName) == "a") { - if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) { - $entry->setAttribute("target", "_blank"); - } + $entry->setAttribute("target", "_blank"); } if (strtolower($entry->nodeName) == "img" && !$br_inserted) { diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 17865237..5bc180de 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -15,7 +15,8 @@ $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"); + "ENABLE_OFFLINE_READING", "EXTENDED_FEEDLIST", "FEEDS_SORT_BY_UNREAD", + "OPEN_LINKS_IN_NEW_WINDOW"); $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS", "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",