X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFeedUtils.php;h=3268291b51fc0d6c9946fe3230598fb92576cb79;hb=17c686a802016269c69789d92ddedb7c35f5c1a7;hp=d7dbd2292eb96b4e552181c0d1174069e5b32e26;hpb=c340c41b37b5079ba90489f6b212bb8e4642031a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index d7dbd2292e..3268291b51 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -39,6 +39,7 @@ class FeedUtils { global $wgRequest, $wgUser; $purge = $wgRequest->getVal( 'action' ) === 'purge'; + // Allow users with 'purge' right to clear feed caches if ( $purge && $wgUser->isAllowed( 'purge' ) ) { $cache = ObjectCache::getMainWANInstance(); $cache->delete( $timekey, 1 ); @@ -128,13 +129,6 @@ class FeedUtils { } if ( $oldid ) { - - # $diffText = $de->getDiff( wfMessage( 'revisionasof', - # $wgLang->timeanddate( $timestamp ), - # $wgLang->date( $timestamp ), - # $wgLang->time( $timestamp ) )->text(), - # wfMessage( 'currentrev' )->text() ); - $diffText = ''; // Don't bother generating the diff if we won't be able to show it if ( $wgFeedDiffCutoff > 0 ) { @@ -195,7 +189,7 @@ class FeedUtils { if ( $html === null ) { - // Omit large new page diffs, bug 29110 + // Omit large new page diffs, T31110 // Also use diff link for non-textual content $diffText = self::getDiffLink( $title, $newid ); } else {