From b0b4abcf3756039965d309333233abc58f61df8d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 23 Aug 2005 12:34:07 +0100 Subject: support for web-demo mode (restricted rights) --- functions.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functions.php') 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); -- cgit v1.2.3