]> git.wh0rd.org - tt-rss.git/commitdiff
unbreak published feed when not logged in
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 26 Jan 2010 09:21:06 +0000 (12:21 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 26 Jan 2010 09:21:06 +0000 (12:21 +0300)
functions.php

index d1d5700f0f791b2ea55c796dd1c8d7d34d80b0d9..6a18ffbf3b6f9098528074b8836950771995ce55 100644 (file)
                        $res = preg_replace('/<img[^>]+>/is', '', $res);
                }
 
-               if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
+               if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW', $owner)) {
                        $res = preg_replace("/href=/i", "target=\"_blank\" href=", $res);
                }