mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-24 15:17:10 +00:00
Merge pull request #456 from andersk/disable-feed-browser
Make _DISABLE_FEED_BROWSER also disable the updateFeedBrowser RPC
This commit is contained in:
@@ -379,6 +379,8 @@ class RPC extends Handler_Protected {
|
||||
}
|
||||
|
||||
function updateFeedBrowser() {
|
||||
if (defined('_DISABLE_FEED_BROWSER') && _DISABLE_FEED_BROWSER) return;
|
||||
|
||||
$search = $this->dbh->escape_string($_REQUEST["search"]);
|
||||
$limit = $this->dbh->escape_string($_REQUEST["limit"]);
|
||||
$mode = (int) $this->dbh->escape_string($_REQUEST["mode"]);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
function make_feed_browser($search, $limit, $mode = 1) {
|
||||
|
||||
if (defined('_DISABLE_FEED_BROWSER') && _DISABLE_FEED_BROWSER) return;
|
||||
|
||||
$owner_uid = $_SESSION["uid"];
|
||||
$rv = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user