]> git.wh0rd.org Git - tt-rss.git/commitdiff
link to enclosures in new window
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 Nov 2007 16:02:25 +0000 (17:02 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 20 Nov 2007 16:02:25 +0000 (17:02 +0100)
functions.php

index 41fca453fc79251557eba017c0bda38a185c18a8..0f3cdefab5ff424cc70a7570cfa17c7cf962ce65 100644 (file)
 
                                        $filename = substr($url, strrpos($url, "/")+1);
 
-                                       $entry = "<a href=\"" . htmlspecialchars($url) . "\">" .
+                                       $entry = "<a target=\"_blank\" href=\"" . htmlspecialchars($url) . "\">" .
                                                $filename . " (" . $line["content_type"] . ")" . "</a>";
 
                                        array_push($entries, $entry);
 
                                        $filename = substr($url, strrpos($url, "/")+1);
 
-                                       $entry = "<a href=\"" . htmlspecialchars($url) . "\">" .
+                                       $entry = "<a target=\"_blank\" href=\"" . htmlspecialchars($url) . "\">" .
                                                $filename . " (" . $e_line["content_type"] . ")" . "</a>";
 
                                        array_push($entries, $entry);