]> git.wh0rd.org - tt-rss.git/blobdiff - modules/pref-feeds.php
add option to disable PUSH client support globally (closes #340
[tt-rss.git] / modules / pref-feeds.php
index 794916c8740c68b8764a709dda3bfb0967f1ae2a..5a65b0dd52b8d98a30bb86827cc02ab44e2abdae 100644 (file)
                                <button dojoType=\"dijit.form.Button\" onclick='return unsubscribeFeed($feed_id, \"$title\")'>".
                                        __('Unsubscribe')."</button>";
 
-                       $pubsub_state = db_fetch_result($result, 0, "pubsub_state");
+                       if (PUBSUBHUBBUB_ENABLED) {
+                               $pubsub_state = db_fetch_result($result, 0, "pubsub_state");
+                               $pubsub_btn_disabled = ($pubsub_state == 2) ? "" : "disabled=\"1\"";
 
-                       $pubsub_btn_disabled = ($pubsub_state == 2) ? "" : "disabled=\"1\"";
-
-                       print "<button dojoType=\"dijit.form.Button\" id=\"pubsubReset_Btn\" $pubsub_btn_disabled
-                                       onclick='return resetPubSub($feed_id, \"$title\")'>".__('Resubscribe to push updates').
-                                       "</button>";
+                               print "<button dojoType=\"dijit.form.Button\" id=\"pubsubReset_Btn\" $pubsub_btn_disabled
+                                               onclick='return resetPubSub($feed_id, \"$title\")'>".__('Resubscribe to push updates').
+                                               "</button>";
+                       }
 
                        print "</div>";