]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref-filters: disable rescore all feeds button unless feed debugging is enabled
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Nov 2010 08:49:31 +0000 (11:49 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 10 Nov 2010 08:49:31 +0000 (11:49 +0300)
modules/pref-filters.php

index 88b4087ce2f1466fbfedd4d2e24395ca74caf774..26efebd507c7dafefbb450602e9614b48b239e59 100644 (file)
                print "<button onclick=\"return removeSelectedFilters()\">".
                        __('Remove')."</button> ";
 
-               print "<button onclick=\"rescore_all_feeds()\">".
-                       __('Rescore articles')."</button> "; 
+               if (defined('_ENABLE_FEED_DEBUGGING')) {
+                       print "<button onclick=\"rescore_all_feeds()\">".
+                               __('Rescore articles')."</button> "; 
+               }
 
                if ($filter_search) {
                        $filter_search = split(' ', db_escape_string($filter_search));