From: daniel
Date: Fri, 8 Jun 2012 07:06:07 +0000 (+0200)
Subject: include serialized content in new pages feed
X-Git-Tag: 1.31.0-rc.0~22097^2^2~134
X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22statistiques_visites%22%2C%22%22%29%20.%20%22?a=commitdiff_plain;h=12fb49bea8700ee49c7eb15e42fc2c1e8e828dc3;p=lhc%2Fweb%2Fwiklou.git
include serialized content in new pages feed
---
diff --git a/includes/specials/SpecialNewpages.php b/includes/specials/SpecialNewpages.php
index 4c32c30d01..b279d8a77f 100644
--- a/includes/specials/SpecialNewpages.php
+++ b/includes/specials/SpecialNewpages.php
@@ -463,7 +463,7 @@ class SpecialNewpages extends IncludableSpecialPage {
$this->msg( 'colon-separator' )->inContentLanguage()->escaped() .
htmlspecialchars( FeedItem::stripComment( $revision->getComment() ) ) .
"
\n
\n" .
- nl2br( htmlspecialchars( $revision->getText() ) ) . "
";
+ nl2br( htmlspecialchars( $revision->getContent()->serialize() ) ) . ""; //TODO: include content model/type in feed item?
}
return '';
}