Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -281,9 +281,10 @@ |
282 | 282 | $languages = Language::getLanguageNames(); |
283 | 283 | $htmlOut .= Xml::element( 'th', array( 'width' => '40%' ), $languages[$wpUserLang] ); |
284 | 284 | |
285 | | - $body = wfMsg( "Centralnotice-template-{$currentTemplate}" ); |
286 | | - |
287 | | - // Generate fields from parsing the body |
| 285 | + // Pull text and respect any inc: markup |
| 286 | + $bodyPage = Title::newFromText( "Centralnotice-template-{$currentTemplate}", NS_MEDIAWIKI ); |
| 287 | + $body = Revision::newFromTitle( $bodyPage )->getText(); |
| 288 | + |
288 | 289 | $fields = array(); |
289 | 290 | preg_match_all( '/\{\{\{([A-Za-z0-9\_\-}]+)\}\}\}/', $body, $fields ); |
290 | 291 | |