mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-27 23:07:10 +00:00
support for web-demo mode (restricted rights)
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
function update_all_feeds($link, $fetch) {
|
||||
|
||||
if (WEB_DEMO_MODE) return;
|
||||
|
||||
pg_query("BEGIN");
|
||||
|
||||
if (!$fetch) {
|
||||
@@ -27,6 +29,8 @@
|
||||
|
||||
function update_rss_feed($link, $feed_url, $feed) {
|
||||
|
||||
if (WEB_DEMO_MODE) return;
|
||||
|
||||
error_reporting(0);
|
||||
$rss = fetch_rss($feed_url);
|
||||
error_reporting (E_ERROR | E_WARNING | E_PARSE);
|
||||
|
||||
Reference in New Issue
Block a user