summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-25 14:23:35 +0400
committerAndrew Dolgov <[email protected]>2011-04-25 14:23:35 +0400
commitdd50b552f718cda69363dec80a2b4b31694b52e9 (patch)
treea473d4569100dd6dde778f7d293b8ebe8ac2acbb /functions.php
parentc57983b1e3d93ac7e1fc3b628bf2011958f4f01b (diff)
update_rss_feed: only show PUSH debug when requested
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 5d77a54fe..d069ea5f2 100644
--- a/functions.php
+++ b/functions.php
@@ -779,7 +779,7 @@
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) {
@@ -813,7 +813,7 @@
}
}
- _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')) {
@@ -824,7 +824,8 @@
$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'");