]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: only show PUSH debug when requested
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 25 Apr 2011 10:23:35 +0000 (14:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 25 Apr 2011 10:23:35 +0000 (14:23 +0400)
functions.php

index 5d77a54febd6fb7aea0fe07b597cacf564eb45e5..d069ea5f21c4b7409bb1f6837b957ec8265aae64 100644 (file)
 
                        if ($pubsub_state != 2) {
 
-                               _debug("update_rss_feed: checking for PUSH hub...");
+                               if ($debug_enabled) _debug("update_rss_feed: checking for PUSH hub...");
 
                                $feed_hub_url = false;
                                if ($use_simplepie) {
                                        }
                                }
 
-                               _debug("update_rss_feed: feed hub url: $feed_hub_url");
+                               if ($debug_enabled) _debug("update_rss_feed: feed hub url: $feed_hub_url");
 
                                if ($feed_hub_url && function_exists('curl_init')) {
 
 
                                        $rc = $s->subscribe($fetch_url);
 
-                                       _debug("update_rss_feed: feed hub url found, subscribe request sent.");
+                                       if ($debug_enabled)
+                                               _debug("update_rss_feed: feed hub url found, subscribe request sent.");
 
                                        db_query($link, "UPDATE ttrss_feeds SET pubsub_state = 1
                                                WHERE id = '$feed'");