]> git.wh0rd.org Git - tt-rss.git/commitdiff
blacklist option OPEN_LINKS_IN_NEW_WINDOW, default to rewrite links to open in new...
authorAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 18:50:11 +0000 (21:50 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 21 Nov 2010 18:50:11 +0000 (21:50 +0300)
functions.php
modules/pref-prefs.php

index 2dc2a16d6b50c8a02695b374fbeb3575f705fd01..1db2d27387d11aa00afaad53872cb5a35e0ed624 100644 (file)
                        }
 
                        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) {
index 1786523745ebed0212916f3a904a4f6ca7ef11dc..5bc180de4986c6429c35e2fbd09839edd4e7b113 100644 (file)
@@ -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",