diff --git a/backend.php b/backend.php
index 2f16ed81a..f70bc8e9e 100644
--- a/backend.php
+++ b/backend.php
@@ -1567,6 +1567,11 @@
}
if ($subop == "browse") {
+
+ if (!ENABLE_FEED_BROWSER) {
+ print "Feed browser is administratively disabled.";
+ return;
+ }
print "
";
@@ -2057,10 +2062,13 @@
onchange=\"javascript:addFeed()\"
size=\"40\">
-
- (
Top 50)
-
+ onclick=\"javascript:addFeed()\" value=\"Add feed\">";
+
+ if (ENABLE_FEED_BROWSER) {
+ print " (Top 50)";
+ }
+
+ print " |
@@ -3984,6 +3992,11 @@
if ($op == "pref-feed-browser") {
+ if (!ENABLE_FEED_BROWSER) {
+ print "Feed browser is administratively disabled.";
+ return;
+ }
+
$subop = $_REQUEST["subop"];
if ($subop == "details") {
diff --git a/config.php-dist b/config.php-dist
index 5935dd126..95086be7e 100644
--- a/config.php-dist
+++ b/config.php-dist
@@ -64,6 +64,9 @@
define('MAIL_FROM', 'TT-RSS Daemon ');
// Pretty obvious, I suppose.
+
+ define('ENABLE_FEED_BROWSER', true);
+ // Enable or disable local feed browser
// vim:ft=php
?>
diff --git a/prefs.php b/prefs.php
index c2492f1a1..71be40338 100644
--- a/prefs.php
+++ b/prefs.php
@@ -87,8 +87,10 @@
onclick="selectTab('genConfig')">
+ if (ENABLE_FEED_BROWSER) { ?>
+ } ?>
if (GLOBAL_ENABLE_LABELS && get_pref($link, 'ENABLE_LABELS')) { ?>
|