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: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?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 '';
}