]> git.wh0rd.org - tt-rss.git/commitdiff
feed editor: show last update error near URL
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 8 Apr 2011 11:45:39 +0000 (15:45 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 8 Apr 2011 11:45:39 +0000 (15:45 +0400)
modules/pref-feeds.php

index 48ad88e53cc81c806aeeb43c7a10be8b4a32bdec..c95e039cde917ba51d4c545cb52c4e94dca4f7ca 100644 (file)
                                regExp='^(http|https)://.*' style=\"width : 20em\"
                                name=\"feed_url\" value=\"$feed_url\">";
 
+                       $last_error = db_fetch_result($result, 0, "last_error");
+
+                       if ($last_error) {
+                               print "&nbsp;<span title=\"".htmlspecialchars($last_error)."\"
+                                       class=\"feed_error\">(error)</span>";
+
+                       }
+
                        /* Category */
 
                        if (get_pref($link, 'ENABLE_FEED_CATS')) {