]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix option OPEN_LINKS_IN_NEW_WINDOW (closes #130)
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 May 2007 04:42:33 +0000 (05:42 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 30 May 2007 04:42:33 +0000 (05:42 +0100)
functions.php

index 8668ab092508b68692cd694e75634ca01537bd71..308ae748ae9833aeb82dbe4eca4f1842c1644f31 100644 (file)
                                print "<div id=\"allEntryTags\">".__('Tags:')." $f_tags_str</div>";
                        }
 
+                       $line["content"] = sanitize_rss($link, $line["content"]);
+
                        if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
                                $line["content"] = preg_replace("/href=/i", "target=\"_new\" href=", $line["content"]);
                        }
 
-                       $line["content"] = sanitize_rss($link, $line["content"]);
-
                        print $line["content"] . "</div>";
                        
                        print "</div>";