From 2aded6bcbc0a2fdac7cacd5e7621c40e927ea960 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 23 Apr 2012 10:35:40 +0200 Subject: [PATCH] fix page creation for non-wikitext system messages --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1