diff options
author | Andrew Dolgov <[email protected]> | 2005-08-23 12:34:07 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-23 12:34:07 +0100 |
commit | b0b4abcf3756039965d309333233abc58f61df8d (patch) | |
tree | 5f810971e983c1d2c29b1e3e870c0ffea55c4831 /functions.php | |
parent | f48ba3c9e4c36e46a4769042876014e8f91eabb5 (diff) |
support for web-demo mode (restricted rights)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 4 |
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); |