]> git.wh0rd.org Git - tt-rss.git/commitdiff
change (wrong) _new link targets to _blank
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 16 Jun 2008 05:21:57 +0000 (06:21 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 16 Jun 2008 05:21:57 +0000 (06:21 +0100)
functions.php

index 2f2e33df9f265b81f684b5ade9d4a5d0f7e567b6..b373ca91c9912c1b581bccfce68bab8331187c31 100644 (file)
                                } else {
                                        return "New version of Tiny-Tiny RSS ($latest_version) is available:
                                                <div class='milestoneDetails'>$content</div>
-                                               Visit <a target=\"_new\" href=\"http://tt-rss.spb.ru/\">official site</a> for
+                                               Visit <a target=\"_blank\" href=\"http://tt-rss.spb.ru/\">official site</a> for
                                                download and update information.";      
                                }
 
 
                        if ($feed_site_url) {
                                if (!$bottom) {
-                                       $target = "target=\"_new\"";
+                                       $target = "target=\"_blank\"";
                                }
                                print "<a $target href=\"$feed_site_url\">".
                                        truncate_string($feed_title,30)."</a>";
 
                        if (!$bottom && !$disable_feed) {
                                print "
-                                       <a target=\"_new\" 
+                                       <a target=\"_blank\" 
                                                href=\"backend.php?op=rss&id=$feed_id&is_cat=$is_cat$search_q\">
                                                <img class=\"noborder\" 
                                                        alt=\"".__('Generated feed')."\" src=\"images/feed-icon-12x12.png\">
                        $link_target = "";
 
                        if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
-                               $link_target = "target=\"_new\"";
+                               $link_target = "target=\"_blank\"";
                        }
 
                        $line = db_fetch_assoc($result);
                        $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"] = preg_replace("/href=/i", "target=\"_blank\" href=", $line["content"]);
                        }
 
                        print $line["content"];
                                                alt=\"Publish article\" onclick='javascript:tPub($id)'>";
                                }
 
-#                              $content_link = "<a target=\"_new\" href=\"".$line["link"]."\">" .
+#                              $content_link = "<a target=\"_blank\" href=\"".$line["link"]."\">" .
 #                                      $line["title"] . "</a>";
 
 #                              $content_link = "<a 
 
                                        if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
                                                $line["content_preview"] = preg_replace("/href=/i", 
-                                                       "target=\"_new\" href=", $line["content_preview"]);
+                                                       "target=\"_blank\" href=", $line["content_preview"]);
                                        }
 
                                        if ($show_excerpt) {