From e7e7b70a7340c6ae3c26050a4c0069064f961514 Mon Sep 17 00:00:00 2001 From: Thomas Gries Date: Thu, 23 Feb 2012 22:24:00 +0000 Subject: [PATCH] increased wgRSSFetchTimeout default from 5 to 15 seconds - many sites are too slow. --- RSS.php | 2 +- RSSHooks.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RSS.php b/RSS.php index 6b8bd7a..c9f8c79 100644 --- a/RSS.php +++ b/RSS.php @@ -52,7 +52,7 @@ $wgRSSCacheAge = 3600; $wgRSSCacheCompare = false; // 5 second timeout -$wgRSSFetchTimeout = 5; +$wgRSSFetchTimeout = 15; // Ignore the RSS tag in all but the namespaces listed here. // null (the default) means the tag can be used anywhere. diff --git a/RSSHooks.php b/RSSHooks.php index 83dbffb..966d6d4 100644 --- a/RSSHooks.php +++ b/RSSHooks.php @@ -34,7 +34,7 @@ class RSSHooks { switch ( true ) { - # disallow because there is no whitelist or emtpy whitelist + # disallow because there is no whitelist or empty whitelist case ( !isset( $wgRSSUrlWhitelist ) || !is_array( $wgRSSUrlWhitelist ) || ( count( $wgRSSUrlWhitelist ) === 0 ) ):