/* Patches */ adjust to mediawiki head 3

This commit is contained in:
Sven 2008-11-19 12:30:53 +00:00
parent d72cfd17e5
commit 4684c0de66
1 changed files with 2 additions and 3 deletions

View File

@ -42,14 +42,13 @@ Index: includes/ChangesFeed.php
===================================================================
--- includes/ChangesFeed.php (revision 43703)
+++ includes/ChangesFeed.php (working copy)
@@ -47,7 +47,9 @@
@@ -47,7 +47,8 @@
self::generateFeed( $rows, $feed );
$cachedFeed = ob_get_contents();
ob_end_flush();
- $this->saveToCache( $cachedFeed, $timekey, $key );
+ if ( $wgFeedCacheTimeout > 0 ) {
+ if ( $wgFeedCacheTimeout > 0 )
+ $this->saveToCache( $cachedFeed, $timekey, $key );
+ }
}
return true;
}