diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-04-26 18:42:05 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-04-26 18:42:05 +0400 |
| commit | 65eebd13f41a18dab90447276faca4045990aac9 (patch) | |
| tree | 61300d1d6fdecf740aedf7d85dce7d4cab7ee119 /modules/pref-feeds.php | |
| parent | 3ff62983526a3d3cf075c59bbfafe65fe9821d58 (diff) | |
add option to disable PUSH client support globally (closes #340
Diffstat (limited to 'modules/pref-feeds.php')
| -rw-r--r-- | modules/pref-feeds.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 794916c87..5a65b0dd5 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -522,13 +522,14 @@ <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>"; |