]> git.wh0rd.org - tt-rss.git/commitdiff
update feeds with errors dialog
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 28 Mar 2011 08:34:39 +0000 (12:34 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 28 Mar 2011 08:34:39 +0000 (12:34 +0400)
modules/popup-dialog.php

index 2046d9a30dca3512845c7774b0b045a02ed7c246..e9c553f977ada2ce1f4750ea312700377ce405ac 100644 (file)
 
                        print __("These feeds have not been updated because of errors:");
 
-                       $result = db_query($link, "SELECT id,title,feed_url,last_error
+                       $result = db_query($link, "SELECT id,title,feed_url,last_error,site_url
                        FROM ttrss_feeds WHERE last_error != '' AND owner_uid = ".$_SESSION["uid"]);
 
                        print "<ul class='feedErrorsList'>";
 
                        while ($line = db_fetch_assoc($result)) {
-                               print "<li><b>" . $line["title"] . "</b> (" . $line["feed_url"] . "): " .
-                                       "<em>" . $line["last_error"] . "</em>";
+                               print "<li><a target=\"_blank\" class=\"visibleLink\" href=\"".
+                                       htmlspecialchars($line["site_url"])."\">".
+                                       htmlspecialchars($line["title"])."</a> (".
+                                       "<a target=\"_blank\" class=\"visibleLink\"
+                                       href=\"".htmlspecialchars($line["feed_url"]).
+                                       "\">".__("feed")."</a>): ".
+                                       $line["last_error"]."</li>";
                        }
 
                        print "</ul>";