From 3623ae0f5f5d919d57d28b470fe8addb5b8cb385 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 22 Aug 2007 06:41:50 +0000 Subject: [PATCH] (bug 9339) Use wfMsgExt() in OutputPage::showErrorPage() to avoid the old issue with incorrect/inconsistent message transformation and braces --- RELEASE-NOTES | 2 ++ includes/OutputPage.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0cfc6acacb..f3e769bae7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -394,6 +394,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7890) Don't list redirects to special pages in Special:BrokenRedirects * (bug 10783) Resizing PNG-24 images causes all alpha channel transparency to be lost and transparent pixels to be turned black +* (bug 9339) General error pages were transforming messages and their parameters + in the wrong order == API changes since 1.10 == diff --git a/includes/OutputPage.php b/includes/OutputPage.php index ae68f639fa..66fbb8d5d4 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -822,9 +822,9 @@ class OutputPage { $this->mRedirect = ''; $this->mBodytext = ''; + array_unshift( $params, 'parse' ); array_unshift( $params, $msg ); - $message = call_user_func_array( 'wfMsg', $params ); - $this->addWikiText( $message ); + $this->addHtml( call_user_func_array( 'wfMsgExt', $params ) ); $this->returnToMain( false ); } -- 2.20.1