summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 355bc1a97..578020f23 100644
--- a/functions.php
+++ b/functions.php
@@ -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);