From: daniel Date: Mon, 23 Apr 2012 08:35:40 +0000 (+0200) Subject: fix page creation for non-wikitext system messages X-Git-Tag: 1.31.0-rc.0~22097^2^2~225 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=2aded6bcbc0a2fdac7cacd5e7621c40e927ea960;p=lhc%2Fweb%2Fwiklou.git fix page creation for non-wikitext system messages --- diff --git a/includes/EditPage.php b/includes/EditPage.php index ed3e9d2dff..c943e96ebd 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -810,7 +810,7 @@ class EditPage { # If this is a system message, get the default text. $msg = $this->mTitle->getDefaultMessageText(); - $content = new WikitextContent($msg); //XXX: really hardcode wikitext here? + $content = ContentHandler::makeContent( $msg, $this->mTitle ); } if ( $content === false ) { # If requested, preload some text.