r50976 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50975‎ | r50976 | r50977 >
Date:13:49, 25 May 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Work around parser madness, because I have no idea what is going on. The following renders each line as a paragraph:
<div>a
b
c/div>
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1272,7 +1272,7 @@
12731273 $text = wfMsgNoTrans( 'permissionserrorstext', count($errors)). "\n\n";
12741274 } else {
12751275 global $wgLang;
1276 - $action_desc = wfMsg( "action-$action" );
 1276+ $action_desc = wfMsgNoTrans( "action-$action" );
12771277 $text = wfMsgNoTrans( 'permissionserrorstext-withaction', count($errors), $action_desc ) . "\n\n";
12781278 }
12791279
@@ -1287,7 +1287,7 @@
12881288 }
12891289 $text .= '</ul>';
12901290 } else {
1291 - $text .= '<div class="permissions-errors">' . call_user_func_array( 'wfMsgNoTrans', reset( $errors ) ) . '</div>';
 1291+ $text .= "<div class=\"permissions-errors\">\n" . call_user_func_array( 'wfMsgNoTrans', reset( $errors ) ) . "\n</div>";
12921292 }
12931293
12941294 return $text;

Status & tagging log