From 89c0bc2a1361343a6c4a919bc3f4d89193a49db8 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Wed, 2 Jan 2008 01:16:44 +0000 Subject: [PATCH] Revert incorrectly committed file, again. --- includes/OutputPage.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index faf533af8e..0c691ab82b 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -981,14 +981,14 @@ class OutputPage { /** * @param array $errors An array of arrays returned by Title::getUserPermissionsErrors - * @return string The wikitext error-messages, formatted into a list. + * @return string The error-messages, formatted into a list. */ public function formatPermissionsErrorMessage( $errors ) { - global $wgParser; - - $text = wfMsgExt( 'permissionserrorstext', array( 'parsemag' ), count( $errors ) ) . "\n\n"; + $text = ''; + + if (sizeof( $errors ) > 1) { - if (count( $errors ) > 1) { + $text .= wfMsgExt( 'permissionserrorstext', array( 'parse' ), count( $errors ) ) . "\n"; $text .= ''; } else { - $text .= '' . call_user_func_array( 'wfMsg', $errors[0]) . ''; + $text .= call_user_func_array( 'wfMsg', $errors[0]); } return $text; -- 2.20.1