X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFeedUtils.php;h=57ba4b3e083bc989d04e57f0b0bc592927b5ddf3;hb=4a883e2ec8dec91254b3232af298014121642d19;hp=15fdbc59cc1c75fb26a97586c13964c4504ddda5;hpb=dd8c1e2dd3feb9c5c6bd79d2a8a3356666792d0c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/FeedUtils.php b/includes/FeedUtils.php index 15fdbc59cc..57ba4b3e08 100644 --- a/includes/FeedUtils.php +++ b/includes/FeedUtils.php @@ -128,11 +128,11 @@ class FeedUtils { if ( $oldid ) { - #$diffText = $de->getDiff( wfMessage( 'revisionasof', - # $wgLang->timeanddate( $timestamp ), - # $wgLang->date( $timestamp ), - # $wgLang->time( $timestamp ) )->text(), - # wfMessage( 'currentrev' )->text() ); + # $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 @@ -164,7 +164,7 @@ class FeedUtils { $diffText = "

Can't load revision $newid

"; } else { // Diff output fine, clean up any illegal UTF-8 - $diffText = UtfNormal::cleanUp( $diffText ); + $diffText = UtfNormal\Validator::cleanUp( $diffText ); $diffText = self::applyDiffStyle( $diffText ); } } else { @@ -185,10 +185,10 @@ class FeedUtils { $html = nl2br( htmlspecialchars( $text ) ); } } else { - //XXX: we could get an HTML representation of the content via getParserOutput, but that may + // XXX: we could get an HTML representation of the content via getParserOutput, but that may // contain JS magic and generally may not be suitable for inclusion in a feed. // Perhaps Content should have a getDescriptiveHtml method and/or a getSourceText method. - //Compare also ApiFeedContributions::feedItemDesc + // Compare also ApiFeedContributions::feedItemDesc $html = null; }