]> git.wh0rd.org - tt-rss.git/blobdiff - classes/feeds.php
universal image caching and automatic cache directories maintenance
[tt-rss.git] / classes / feeds.php
index 5d55f2f0289b845df182eb21fb88850d971df45c..f9f82cd163e4dda7098fb72e671a13a88db91d2d 100644 (file)
@@ -1,6 +1,12 @@
 <?php\r
 class Feeds extends Protected_Handler {\r
 \r
+       function csrf_ignore($method) {\r
+               $csrf_ignored = array("index");\r
+\r
+               return array_search($method, $csrf_ignored) !== false;\r
+       }\r
+\r
        private function feedlist_init_cat($cat_id, $hidden = false) {\r
                $obj = array();\r
                $cat_id = (int) $cat_id;\r
@@ -178,9 +184,10 @@ class Feeds extends Protected_Handler {
                        catchupArticlesById($this->link, $ids, $cmode);\r
                } */\r
 \r
-               //if ($method == "ForceUpdate" && $feed && is_numeric($feed) > 0) {\r
-               //      update_rss_feed($this->link, $feed, true);\r
-               //}\r
+               if ($method == "ForceUpdate" && $feed && is_numeric($feed) > 0) {\r
+                       include "rssfuncs.php";\r
+                       update_rss_feed($this->link, $feed, true);\r
+               }\r
 \r
                if ($method == "MarkAllRead")  {\r
                        catchup_feed($this->link, $feed, $cat_view);\r
@@ -706,11 +713,6 @@ class Feeds extends Protected_Handler {
 \r
                                        //$note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);\r
 \r
-                                       $reply['content'] .= "<img src=\"images/art-pub-note.png\"\r
-                                               style=\"cursor : pointer\" style=\"cursor : pointer\"\r
-                                               onclick=\"editArticleNote($id)\"\r
-                                               alt='PubNote' title='".__('Edit article note')."'>";\r
-\r
                                        foreach ($button_plugins as $p) {\r
                                                $reply['content'] .= $p->render($id, $line);\r
                                        }\r
@@ -718,7 +720,7 @@ class Feeds extends Protected_Handler {
                                        $reply['content'] .= "<img src=\"images/digest_checkbox.png\"\r
                                                style=\"cursor : pointer\" style=\"cursor : pointer\"\r
                                                onclick=\"dismissArticle($id)\"\r
-                                               alt='Dismiss' title='".__('Dismiss article')."'>";\r
+                                               title='".__('Close article')."'>";\r
 \r
                                        $reply['content'] .= "</div>";\r
                                        $reply['content'] .= "</div>";\r